Kind of teleport command
#3

pawn Код:
dcmd_level(playerid,params[])
{
    if(!params[0])
    {
        SendClientMessage(playerid,0xC06716FF,"USAGE: /level [0 - 10]");
        return 1;
    }
    new level;
    level = strval(params);
    switch(level)
    {
      case 0:
      {
        // /level 0 - code here
      }
      case 1:
      {
        // /level 1 - code here
      }
      case 2:
      {
        // /level 2 - code here
      }
      //etc.
     
        default:
        {
          //In case they type any other number
          SendClientMessage(playerid,0xC06716FF,"USAGE: /level [0 - 10]");
          return 1;
        }
    }
}
That should be a working dcmd version.
Reply


Messages In This Thread
Kind of teleport command - by Faith - 19.04.2010, 20:56
Re: Kind of teleport command - by cessil - 20.04.2010, 00:32
Re: Kind of teleport command - by Backwardsman97 - 20.04.2010, 03:48
Re: Kind of teleport command - by Faith - 20.04.2010, 04:12

Forum Jump:


Users browsing this thread: 1 Guest(s)