05.04.2015, 01:36
hello
i have problem , when i add include ""ShowInfoForplayer"" , i get error in this :
full code
when i remove it , i dont get error, why i want add this include? because i want add this anti spawn kill
i have problem , when i add include ""ShowInfoForplayer"" , i get error in this :
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { ShotTimes[issuerid]++; if(issuerid != INVALID_PLAYER_ID && bodypart == 9) { foreach(Player, g) { if(playerVariables[g][pSpectating] == issuerid) { new stringa[80]; format(stringa, sizeof(stringa), "[!] %s has made damage to %s by a headshot. [!]", GetName(issuerid),GetName(playerid)); SCM(g, COLOR_FRED, stringa); } } } if(DamageON[issuerid] == 1) { format(szMessage, sizeof(szMessage), "+~y~%.0f ~w~ damage (x %i)", amount, ShotTimes[issuerid]); TextDrawShowForPlayer(issuerid, DamageTD[issuerid]); TextDrawSetString(DamageTD[issuerid], szMessage); DamageTime[issuerid] = 5; } ......
Код:
forward AntiSpawnkill(playerid); public AntiSpawnkill(playerid) { SetPlayerHealth(playerid, 100.0); //SendClientMessage(playerid, COLOR_LIGHT, "(( AdmBot says: anti-spawn kill protection is over, you are on your own now. ))"); ShowInfoForPlayer(playerid, "~r~You have spawn kill protection is over!", 2000); return 1; }