an example for zcmd sub cmds.
#4

dont mind the intention
PHP код:
CMD:heal(playerid,params[])
{
   if(!
strlen(params)) return SendClientMessage(playerid, -1"usage: /heal [health/armour]"); // or isnull(params)
   
if(! strcmp(params"health"true6))
  {
      
SetPlayerHealth(playerid,100.0);
}
   else if(! 
strcmp(params"armour"true6)
{
setplayerarmour(playerid,100.0);
}
return 
1;

Reply


Messages In This Thread
an example for zcmd sub cmds. - by fuckingcruse - 04.02.2016, 01:41
Re: an example for zcmd sub cmds. - by SickAttack - 04.02.2016, 01:51
Re: an example for zcmd sub cmds. - by Gammix - 04.02.2016, 02:19
Re: an example for zcmd sub cmds. - by xTURBOx - 04.02.2016, 07:50
Re: an example for zcmd sub cmds. - by fuckingcruse - 04.02.2016, 13:07
Re: an example for zcmd sub cmds. - by Rufio - 04.02.2016, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)