01.01.2011, 12:12
I would suggest ZCMD, it's more efficient than dcmd:
pawn Код:
COMMAND:god( playerid, params[ ] )
{
#pragma unused params
if( GetPVarInt( playerid, "god_mode" ) == 0 )
{
SetPVarInt( playerid, "god_mode", 1 );
SetPlayerHealth( playerid, 1000000.0 );
}
else
{
SetPVarInt( playerid, "god_mode", 0 );
SetPlayerHealth( playerid, 100.0 );
}
return 1;
}