alert
#2

using zcmd
pawn Код:
CMD:buycar(playerid,params[])
{
     if(isnull(params))
     {
          SendClientMessage(playerid,DEFINED_COLOR,"Buying a car will cost $500,000");
          return 1;
     }
     new cost = strval(params);

.... etc
using OnPlayerCommandText
pawn Код:
cmd = strtok(cmdtext, idx);
if(!strcmp(cmd,"buycar",true))
{
     tmp = strtok(cmdtext, idx);
     if(!strlen(tmp))
     {
          SendClientMessage(playerid,DEFINED_COLOR,"buying a car will cost $500,000");
          return 1;
      }
      new cost = strval(tmp);
}
..... etc
Reply


Messages In This Thread
alert - by iJumbo - 21.09.2010, 14:44
Re: alert - by Rachael - 21.09.2010, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)