29.08.2012, 11:24
pawn Код:
dcmd_v(playerid,params[])
{
#pragma unused params
new vehid,color1,color2,vid;
if(sscanf(params,"iii",vehid,color1,color2)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /v [vehicleid] [color1] [color2]");
new Float:x,Float:y,Float:z,Float:ang;
GetPlayerFacingAngle(playerid,ang);
GetPlayerPos(playerid,x,y,z);
vid = CreateVehicle(vehid,x,y,z,ang,color1,color2,60);
PutPlayerInVehicle(playerid, vid, 0);
return 1;
}