Faзa um teste, veja se vai fucionar..
PHP код:
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);
return 1;
}
else if(pTeam[playerid] == TIME_2)
{
GivePlayerWeapon(playerid,29,80);
GivePlayerWeapon(playerid,30,150);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,27,85);
return 1;
}
else if(pTeam[playerid] == TIME_3)
{
GivePlayerWeapon(playerid,29,80);
GivePlayerWeapon(playerid,26,100);
GivePlayerWeapon(playerid,14,1);
GivePlayerWeapon(playerid,18,5);
return 1;
}
else if(pTeam[playerid] == TIME_4)
{
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,31,120);
GivePlayerWeapon(playerid,27,80);
GivePlayerWeapon(playerid,16,3);
return 1;
}
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;
}
return 1;
}