14.02.2017, 13:46
Like this?
Код:
foreach(new i : Player) { if(teams[playerid] == teams[i] ) continue; if(PRESSED(KEY_WALK)) { if(teams[playerid] == TEAM_ZOMBIE) { if(pInfo[playerid][pZombieClass] == SCREAMERZOMBIE) { if(gettime() - 15 < Abilitys[playerid][ScreamerZombieAb]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5); { switch(GetPlayerSkin(i)) { case NON_IMMUNE,285,181,249: { if(GetDistanceBetweenPlayers(playerid,i) < 5.0) { GetClosestPlayer(i); ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1); GameTextForPlayer(i,"~n~~n~~n~~n~~g~Screamer Attacked",3500,5); SetTimerEx("ScreamerClearAnim",1500,0,"i",i); GivePlayerXP(playerid,2); Abilitys[playerid][ScreamerZombieAb] = gettime(); } } } } } } } }