14.06.2011, 19:06
pawn Код:
if(strcmp(cmd, "/godmod", true) == 0)
{
if(GetPVarInt(playerid, "GOD") == 0)
{
SetPVarInt(playerid, "GOD", 1);
SetPlayerHealth(playerid, 99999);
//mensagem
}
if(GetPVarInt(playerid, "GOD") == 1)
{
SetPVarInt(playerid, "GOD", 0);
SetPlayerHealth(playerid, 100);
//Mensagem
}
return 0x01;
}
//public ONPlayerdeath
if(GetPVarInt(playerid, "GOD") == 1) SetPVarInt(playerid, "GOD", 0);
O correto й
new omg[MAX_PLAYERS];