Command
#2

pawn Код:
CMD:set(playerid,params[])
{
    new id, thing[128] , value;
    if(!sscanf(params, "ds[128]d", id, thing, value))
    {
         if(strcmp(thing,"level", true) == 0)
          {
           // your code here
          }
          if(strcmp(thing,"xp", true) == 0)
          {
           // your code here
          }
          if(strcmp(thing,"money", true) == 0)
          {
           // your code here
          }
    }
    else
     SendClientMessage(playerid, -1, "USAGE: /set [playerid/partofName] [Thing] [value]");

return 1;
}
Hope i helped
Reply


Messages In This Thread
Command - by rumen98 - 23.05.2014, 20:09
Re: Command - by Fred1993 - 23.05.2014, 20:21
Re: Command - by iFiras - 23.05.2014, 20:27
Re: Command - by rumen98 - 23.05.2014, 20:37
Re: Command - by AndySedeyn - 23.05.2014, 20:43
Re: Command - by Fred1993 - 23.05.2014, 20:45
Re: Command - by rumen98 - 23.05.2014, 21:11
Re: Command - by AndySedeyn - 23.05.2014, 21:19
Re: Command - by rumen98 - 23.05.2014, 21:25
Re: Command - by Jacksta21 - 23.05.2014, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)