Bacanje aktora u animaciju

Započeo BoZZ
20. Jan. 2019. Zaključano
837
pregleda
10
postova
BoZZMapper
3
Wheel Man
20. Jan. 2019.
Problem(error/warning): Pa ovako, kada opucam aktora ne desi se nista, a aktora bi trebalo baciti u animaciju( INACE SAM STAVIO BZVZ ANIMACIJU SAMO ZA TEST )
Dio skripte:
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
for(new gZone__ID; gZone__ID < sizeof(gZoneInfo); gZone__ID++) {
    if(damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 0 ] && gZoneInfo[ gZone__ID ][ ActorAlive ][ 0 ] ||
  damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 1 ] && gZoneInfo[ gZone__ID ][ ActorAlive ][ 1 ] ||
  damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 2 ] && gZoneInfo[ gZone__ID ][ ActorAlive ][ 2 ])
{
    if( PlayerInfo[ playerid ][ xZauzimanjeVreme ] != 0 || !gZoneInfo[ gZone__ID ][ gZoneTakeable ]
||  PlayerInfo[ playerid ][ xClan ] == gZoneInfo[ gZone__ID ][ gZoneGangID ]
||  gZoneInfo[ gZone__ID ][ gZoneTime ] != 0
||  (GetFactionType( playerid ) != ORG_TIP_BANDA && GetFactionType( playerid ) != ORG_TIP_MAFIJA)) return 1;
//Animacije dodaj u if-ove.
if(damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 0 ]) {
gZoneInfo[ gZone__ID ][ ActorAlive ][ 0 ] = false;
  SCM( playerid, NARACRVENA, "Srusio si jednog od cuvara teritorija, srusi ih sve da zapocnes zauzimanje." );
                ApplyActorAnimation(gZoneActor, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0);
}
else if(damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 1 ]) {
gZoneInfo[ gZone__ID ][ ActorAlive ][ 1 ] = false;
SCM( playerid, NARACRVENA, "Srusio si jednog od cuvara teritorija, srusi ih sve da zapocnes zauzimanje." );
                ApplyActorAnimation(gZoneActor, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0);
}
else if(damaged_actorid == gZoneInfo[ gZone__ID ][ gZoneActor ][ 2 ]) {
gZoneInfo[ gZone__ID ][ ActorAlive ][ 2 ] = false;
SCM( playerid, NARACRVENA, "Srusio si jednog od cuvara teritorija, srusi ih sve da zapocnes zauzimanje." );
                ApplyActorAnimation(gZoneActor, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0);
}
if(!gZoneInfo[ gZone__ID ][ ActorAlive ][ 0 ]
&& !gZoneInfo[ gZone__ID ][ ActorAlive ][ 1 ]
&& !gZoneInfo[ gZone__ID ][ ActorAlive ][ 2 ])
{
new Orga = 0, Protiv = 0, hour, minute, seconds;
gettimeEx( hour, minute, seconds );
FixHour( hour );
hour = shifthour;
foreach( Player, i ) {

    if( gZoneInfo[ gZone__ID ][ gZoneGangID ] != -1 ) {
if( PlayerInfo[ i ][ xClan ] == gZoneInfo[ gZone__ID ][ gZoneGangID ] ) Protiv++;
}
    if( PlayerInfo[ i ][ xClan ] == PlayerInfo[ playerid ][ xClan ] ) Orga++;
}
    if( weaponid >= 22 && weaponid <= 40) {
        if( ( hour >= 09 ) && ( hour <= 23 ) ) {
    if( gZoneInfo[ gZone__ID ][ gZoneGangID ] != -1 ) {

                OrgPoruka( gZoneInfo[ gZone__ID ][ gZoneGangID ], 0x95b4a2FF, " Druga banda pokusava da zauzme vasu teritoriju." );
}
new stringic[ 24 ];
            format( stringic, sizeof( stringic ), "0x%s99", org_info[ PlayerInfo[ playerid ][ xClan ] ][ oColor ] );
GangZoneFlashForAll( gZoneInfo[ gZone__ID ][ gZoneID ], HexToInt( stringic ) );
SCM( playerid, NARACRVENA, "SRUSIO SI SVE CUVARE, ZAUZIMANJE ZAPOCETO." );
SCM( playerid, NARACRVENA, "Moras ostati ziv sledecih 5 minuta kako bi je osvojio." );
SCM( playerid, NARACRVENA, "Ne smes se previse udaljiti od mesta zauzimanja, jer ce zauzimanje biti prekinuto.");
gZoneInfo[ gZone__ID ][ gZoneTime ] = 30;
gZone_gID[ playerid ] = gZone__ID;
gZone_Time[ playerid ] = 300;
gZone_Timer[ playerid ] = SetTimerEx( "ZonaZauzmi", 1000, true, "i", playerid );
PlayerInfo[ playerid ][ xZauzimanjeVreme ] = 30;
OrgPoruka( PlayerInfo[ playerid ][ xClan ], 0x95b4a2FF, " Clan vase organizacije pokusava da zauzme tudju teritoriju." );
}
}
}
}
}
    return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
//

Slika/video ingame problema(obavezno ako je ingame problem): //
BoZZMapper
3
Wheel Man
21. Jan. 2019.
*BUMP*
BoZZMapper
3
Wheel Man
22. Jan. 2019.
*BUMP*

@Bašovski @Ino42O @Pharaoh hitno ?
James_SmithXDl
6
OG Legend
22. Jan. 2019.
uradi test
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
    new string;
format(string, sizeof(string), "Damageovao si Actora ID:%d test",damaged_actorid);
SendClientMessage(playerid,-1, string);
    return 1;
}

ako se nista ne desava
ispod createactor dodaj ovo
SetActorInvulnerable(IMEACTORA,false);

opet ak nista onda probaj update streamer na v2.9.3 / ili na najnoviju
klik
BoZZMapper
3
Wheel Man
22. Jan. 2019.
youngdeal wrote on January 22, 2019, 2:47 pm:
uradi test
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
    new string;
format(string, sizeof(string), "Damageovao si Actora ID:%d test",damaged_actorid);
SendClientMessage(playerid,-1, string);
    return 1;
}

ako se nista ne desava
ispod createactor dodaj ovo
SetActorInvulnerable(IMEACTORA,false);

opet ak nista onda probaj update streamer na v2.9.3 / ili na najnoviju
klik

Prvo ovo sto stavim ne desi se nista
Drugo imam
I streamer imam najnoviji
Ivan_Ino
5
Kingpin
22. Jan. 2019.
Mozda imas negdje taj callback u filterskripti nekoj koji returna prije gamemode-a ili include vezan za actore?
BoZZMapper
3
Wheel Man
22. Jan. 2019.
Ino42O wrote on January 22, 2019, 6:06 pm:
Mozda imas negdje taj callback u filterskripti nekoj koji returna prije gamemode-a ili include vezan za actore?
Filterskripte ne koristim uopste, a include za aktore ovako imam..
Ivan_Ino
5
Kingpin
23. Jan. 2019.
Jel koristis streamer za actore? CreateDynamicActor i slicno..?
Rax_King
5
Godfather
23. Jan. 2019.
Debugaj jednostavno da se ne mucis bzvz
BoZZMapper
3
Wheel Man
23. Jan. 2019.
Ino42O wrote on January 23, 2019, 8:01 am:
Jel koristis streamer za actore? CreateDynamicActor i slicno..?
Koristim CreateActor

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha