16.12.2010, 14:24
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;
}

