god help
#3

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/GodMode", cmdtext, true, 10) == 0)
	{
		if(Godmode[playerid] == 0)
		{
		SendClientMessage(playerid, COLOR_GREEN, "Godmode On");
		Godmode[playerid] = 1;
		GodTimer = SetTimer("GodMode", 100, 1);
		}
		else if(Godmode[playerid] == 1)
		{
		SendClientMessage(playerid, COLOR_YELLOW, "god off");
        Godmode[playerid]=0;
 }
		return 1;
	}
	return 0;
}
public GodMode(playerid)
{
if(Godmode[playerid]==1){
	SetPlayerHealth(playerid, 1000.0);
	ResetPlayerWeapons(playerid);
}
	return 1;
}
Reply


Messages In This Thread
god help - by aaronishello - 28.04.2009, 19:05
Re: god help - by miokie - 28.04.2009, 19:08
Re: god help - by Diler - 28.04.2009, 19:10
Re: god help - by Metorea - 28.04.2009, 19:39
Re: god help - by aaronishello - 28.04.2009, 19:42
Re: god help - by Metorea - 28.04.2009, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)