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;
}
|
did you just insert include like #include <OPSP>
or did you forward the public?? |