#4

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;
}
Reply


Messages In This Thread
.... - by Audi_Quattrix - 16.06.2012, 20:49
Re: .... - by Djole1337 - 16.06.2012, 20:50
Re: .... - by sniperwars - 16.06.2012, 20:52
Re: .... - by [jS]Thomas - 16.06.2012, 20:52
Re: .... - by Audi_Quattrix - 16.06.2012, 20:57
Re: .... - by Dubya - 16.06.2012, 20:59
Re: .... - by Audi_Quattrix - 16.06.2012, 21:25
Re: .... - by FireCat - 17.06.2012, 10:36

Forum Jump:


Users browsing this thread: 2 Guest(s)