I made an anti-spawnkill,
but the problem is:
I can't kill people but they can kill me.
The anti-spawnkill also only works on me.
here the codes:
Whats wrong?
Please help
but the problem is:
I can't kill people but they can kill me.
The anti-spawnkill also only works on me.
here the codes:
PHP Code:
forward spawnkill(playerid);
public spawnkill(playerid)
{
new Text3D:label;
SetPlayerHealth(playerid, 100.0);
SendClientMessage(playerid, COLOR_RED, "Spawn protection is over. You are ready to combat.");
Delete3DTextLabel(label);
}
public OnPlayerSpawn(playerid)
{
/* Spawn Protection*/
new Text3D:label = Create3DTextLabel("Spawn protection", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
SetPlayerHealth(playerid, 99999);
SetTimer("spawnkill", 10000, false);
return 1;
}
Please help