06.12.2012, 11:09
No.. just put 5000 it will work or this
And
And also delete ,5
So it's like this :
Command :
Note : I don't know if it works with the armour too ( the infinity thing ) but you can try.
pawn Код:
#define INFINITY (Float:0x7F800000)
pawn Код:
SetPlayerHealth(playerid, INFINITY);
So it's like this :
pawn Код:
if (strcmp("/godmodez", cmdtext, true) == 0)
pawn Код:
#define INFINITY (Float:0x7F800000)
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/godmodez", cmdtext, true) == 0)
{
SetPlayerArmour(playerid, INFINITY);
SetPlayerHealth(playerid, INFINITY);
return 1;
}
return 0;
}