02.05.2015, 16:19
Hello!
Are you updated your server includes?
By the way, write your code so, CreateVehicle need a 1 for the sirene.
Are you updated your server includes?
By the way, write your code so, CreateVehicle need a 1 for the sirene.
PHP код:
CMD:sveh(playerid, params[])
{
new id, Float:pos[4], col[2];
if(sscanf(params, "iii", id, col[0], col[1])) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [vehicleid/destroy] [color1] [color2]");
if(id < 400 || id > 611) return SendClientMessage(playerid, COLOR_GREY, "Vehicles are between 400 and 611.");
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
CreateVehicle(id, pos[0], pos[1], pos[2], pos[3], col[0], col[1], 12000, 1);
return 1;
}