10.07.2015, 14:46
Faca debug!
pawn Код:
//<?
public OnPlayerSpawn(playerid)
{
AntiDeAMX();
printf("after: %d", pTeam[playerid]);
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
}
printf("before: %d", pTeam[playerid]);
return 1;
}