06.04.2013, 07:40
I'd rather just set the health and armor to 999999.
And if you want a real godemode, do this
And if you want a real godemode, do this
pawn Код:
new god[MAX_PLAYERS]=0;
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/god",cmdtext,true) == 0)
{
if(god[playerid] == 0)
{
god[playerid] = 1;
return 1;
}
else
{
god[playerid] = 0;
return 1;
}
}
return 0;
}
public OnPlayerUpdate(playerid)
{
if(god[playerid] == 1)
{
SetPlayerHealth(playerid,999999);
SetPlayerArmor(playerid,999999)
}
}