dcmd help
#3

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;
}
Reply


Messages In This Thread
dcmd help - by xir - 31.12.2010, 12:57
Re: dcmd help - by xir - 01.01.2011, 12:07
Re: dcmd help - by Grim_ - 01.01.2011, 12:12
Re: dcmd help - by DRIFT_HUNTER - 01.01.2011, 12:12
Re: dcmd help - by xir - 01.01.2011, 12:31
Re: dcmd help - by HyperZ - 01.01.2011, 14:23
Re: dcmd help - by _rAped - 01.01.2011, 14:53
Re: dcmd help - by xir - 01.01.2011, 15:31

Forum Jump:


Users browsing this thread: 2 Guest(s)