needing help
#2

Something like this: - I havent tested this, but it should work.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp("/v", cmdtext))
     {
          strdel(cmdtext, 0, 3);
          if(strlen(cmdtext) == 0) return SendClientMessage(playerid, COLOUR, "Usage: /v [vid]");
          new Float:x, Float:y, Float:z;
          GetPlayerPos(playerid, x, y, z);
          CreateVehicle(strval(cmdtext), x+3, y+3, z, 0.0, -1, -1, -1);
          return 1;
     }
     return 0;
}
Reply


Messages In This Thread
needing help - by _Sprite_ - 16.12.2010, 14:21
Re: needing help - by Ash. - 16.12.2010, 14:24
Re: needing help - by _Sprite_ - 16.12.2010, 14:28
Re: needing help - by blackwave - 16.12.2010, 14:36
Re: needing help - by veyron - 16.12.2010, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)