20.01.2010, 19:19
I'm an absolute beginner when it comes to coding, but I have thrown a few bits and pieces together to make a script for me and some friends to freeroam on. I'd like to add a 30 second godmode when a player spawns since sometimes spawnkills are so tempting. Right now this is what my spawn code looks like:
I don't know what to do from there. Suggestions?
Код:
public OnPlayerSpawn(playerid) { GivePlayerMoney(playerid, PocketMoney); SetPlayerHealth(playerid, 100000.0); SetTimer("stopgod", 30000,0); SendClientMessage(playerid, COLOR_RED, "You are invulnerable for 30 seconds after spawning to prevent spawncamping."); return 1; }