[Ajuda] Callback sendo chamada 2 vezes.
#1

Nгo sei oque tб rolando.. jб fiz de tudo mas nгo consegui resolver.

As armas sempre vem com o dobro da muniзгo e a mensagem do ant spawnkill й enviada 2 vezes.

pawn Код:
public OnPlayerSpawn(playerid)
{
    AntiDeAMX();

        if(pTeam[playerid] == TIME_1) {
            GivePlayerWeapon(playerid,25,100);
            GivePlayerWeapon(playerid,31,120);
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,16,3);
        }
        else if(pTeam[playerid] == TIME_2) {
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,30,150);
            GivePlayerWeapon(playerid,24,100);
            GivePlayerWeapon(playerid,27,85);
        }
        else if(pTeam[playerid] == TIME_3) {
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,26,100);
            GivePlayerWeapon(playerid,14,1);
            GivePlayerWeapon(playerid,18,5);

        }
        else if(pTeam[playerid] == TIME_4) {
            GivePlayerWeapon(playerid,24,100);
            GivePlayerWeapon(playerid,31,120);
            GivePlayerWeapon(playerid,27,80);
            GivePlayerWeapon(playerid,16,3);
        }
    if(PlayerInfo[playerid][Spec] == 0) {
        gAntiSpawnKillTimer[playerid] = SetTimerEx("OnAntiSpawnKillExpire", ANIT_SPAWNKILL_TIME * 1000, false, "i", playerid);
        SetPlayerHealth(playerid, cellmax);
        SendClientMessage(playerid,cor_laranja,"Ant sk ativado!");
        SetPlayerChatBubble(playerid, "Protegido Anti-Spawnkill", -1, 25.0, ANIT_SPAWNKILL_TIME * 1000);//the label over head
    }
    return 1;
}
Reply


Messages In This Thread
Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:38
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 14:46
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:51
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 14:52
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:53
Re: Callback sendo chamada 2 vezes. - by Jimmmy - 10.07.2015, 15:00
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 15:02
Re: Callback sendo chamada 2 vezes. - by Jimmmy - 10.07.2015, 15:10
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 16:22
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 16:48

Forum Jump:


Users browsing this thread: 3 Guest(s)