if (strcmp("/godemodeon", cmdtext, true, 10) == 0)
{
new playrname[MAX_PLAYER_NAME];
new pname[MAX_PLAYER_NAME];
new string[100];
SetPlayerHealth(playerid, 0x7F800000);
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s Godmode: ON!", pname);
SendClientMessageToAll(0xFFFF00AA, string);
GetPlayerName(playerid, playrname, sizeof(playrname));
return 1;
}
if (strcmp("/godemodeaus", cmdtext, true, 10) == 0)
{
new playrname[MAX_PLAYER_NAME];
new pname[MAX_PLAYER_NAME];
new string[100];
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s Godmode: OFF!", pname);
SendClientMessageToAll(0xFFFF00AA, string);
GetPlayerName(playerid, playrname, sizeof(playrname));
return 1;
}