16.06.2012, 20:52
No you do not have too, something like this would work:
pawn Код:
dcmd_car(playerid,params[])
{
new Model, Float:Pos[4], col1, col2;
if(sscanf(params, "iii", Model, col1, col2)) return SendClientMessage(playerid, COLOR_RED, " /car [model] [color 1] [color 2]");
if(col1 < 0 || col2 < 0 || col1 > 126 || col2 > 126) return SendClientMessage(playerid, COLOR_RED, "Wrong Color ID");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
CreateVehicle(Model, Pos[0], Pos[1], Pos[2], Pos[3], col1, col2, -1);
return 1;
}