10.07.2015, 14:38
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.
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;
}