Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- public OnPlayerSpawn(playerid)
- {
- SetPlayerHealth(playerid, 10000.0);
- SendClientMessage(playerid, 0xFF0000AA, "[INFO]:You have 5 seconds of Anti-Spawnkill protection");
- SetPlayerChatBubble(playerid, "[INFO]:Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
- SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
- return 1;
- }
- forward AntiSpawnkill(playerid);
- public AntiSpawnkill(playerid)
- {
- SetPlayerHealth(playerid, 100.0);
- SendClientMessage(playerid, 0xFF0000AA, "[INFO]:Anti-Spawnkill protection over, you are on your own now");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment