Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Spawnkill help!

$
0
0
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:
PHP Code:

forward spawnkill(playerid);
public 
spawnkill(playerid)
{
    new 
Text3D:label;
    
SetPlayerHealth(playerid100.0);
    
SendClientMessage(playeridCOLOR_RED"Spawn protection is over. You are ready to combat.");
    
Delete3DTextLabel(label);
}
public 
OnPlayerSpawn(playerid)
{
    
/* Spawn Protection*/
    
new Text3D:label Create3DTextLabel("Spawn protection"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
    
SetPlayerHealth(playerid99999);
    
SetTimer("spawnkill"10000false);
        return 
1;


Whats wrong?

Please help

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>