How to add siren
#1

This is the code for creating my car faction, I want to create wish the car "H" will howls?
For example: I /dvcreate 415 (Cheetah car usually not type LSPD car) [Color1] 1 [color2] 1 And I want to add a [siren type] here, how do you want me to express how I do, please?

Quote:

CMD:dvcreate(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 133
{
new
iVehicle,
iColors[2],
string[128];

if(sscanf(params, "iii", iVehicle, iColors[0], iColors[1])) {
return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /dvcreate [model ID] [color 1] [color 2]");
}
if(!(400 < iVehicle < 612)) return SendClientMessage(playerid, COLOR_GRAD2, "Invalid Model ID");
else if(IsATrain(iVehicle)) {
SendClientMessageEx(playerid, COLOR_GREY, "Trains cannot be spawned during runtime.");
}
else if(!(0 <= iColors[0] <= 255 && 0 <= iColors[1] <= 255)) {
SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid color specified (IDs start at 0, and end at 255).");
}
mysql_function_query(MainPipeline, "SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;", true, "DynVeh_CreateDVQuery", "iiii", playerid, iVehicle, iColors[0], iColors[1]);
format(string, sizeof(string), "%s has created a dynamic vehicle.", GetPlayerNameEx(playerid));
Log("logs/dv.log", string);
}
else return SendClientMessage(playerid, COLOR_GRAD2, "Ban khong the su dung lenh nay.");
return 1;
}

Reply


Messages In This Thread
How to add siren - by linhpro200294 - 02.07.2018, 09:06
Re: How to add siren - by FaLLenGirL - 02.07.2018, 09:44
Re: How to add siren - by linhpro200294 - 02.07.2018, 09:49
Re: How to add siren - by jasperschellekens - 02.07.2018, 10:15
Re: How to add siren - by linhpro200294 - 02.07.2018, 13:08
Re: How to add siren - by Sew_Sumi - 02.07.2018, 15:02
Re: How to add siren - by linhpro200294 - 02.07.2018, 16:52
Re: How to add siren - by linhpro200294 - 04.07.2018, 14:29
Re: How to add siren - by Vithinn - 04.07.2018, 15:29
Re: How to add siren - by linhpro200294 - 05.07.2018, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)