Temp godmode at spawn?
#1

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:

Код:
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;
}
I don't know what to do from there. Suggestions?
Reply


Messages In This Thread
Temp godmode at spawn? - by biltong - 20.01.2010, 19:19
Re: Temp godmode at spawn? - by Joe Staff - 20.01.2010, 19:26
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 09:28
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:09
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:34
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:40
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:47
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:55
Re: Temp godmode at spawn? - by bluray - 23.01.2010, 11:44
Re: Temp godmode at spawn? - by llama - 23.01.2010, 11:52

Forum Jump:


Users browsing this thread: 6 Guest(s)