SHOW:
|
|
- or go back to the newest paste.
| 1 | publique OnPlayerSpawn (playerid) | |
| 2 | {
| |
| 3 | - | SetPlayerHealth (playerid, 99999,0); |
| 3 | + | SetPlayerHealth (playerid, 99999.0); |
| 4 | SetTimerEx ("SpawnProtection", 10000, false, "i", playerid);
| |
| 5 | SendClientMessage (playerid, 0xFFFFF55, "[Anti-SpawnKill]:. You are protected for 10 seconds"); | |
| 6 | return 1; | |
| 7 | } | |
| 8 | ||
| 9 | SpawnProtection avant (playerid); | |
| 10 | SpawnProtection public (playerid) | |
| 11 | {
| |
| 12 | - | SetPlayerHealth (playerid, 100,0); |
| 12 | + | SetPlayerHealth (playerid, 100.0); |
| 13 | SendClientMessage (playerid, 0xFFFFF55, "[Anti-SpawnKill] You're more protected"); | |
| 14 | return 1; | |
| 15 | } |