AddSiren 0.3.7
#1

Код:
YCMD:createfactioncar(playerid, params[], help) {
	if(help) {
		SendClientMessage(playerid, X11_WHITE, "Creates a faction vehicle");
		return 1;
	}
	new model, faction, c1, c2;
	if(!sscanf(params, "dddd", faction, model, c1, c2)) {
		if(!IsValidFaction(faction)) {
			SendClientMessage(playerid, X11_TOMATO_2, "Invalid Faction!");
			return 1;
		}
		if(model < 400 || model > 611) {
			SendClientMessage(playerid, X11_TOMATO_2, "Invalid Model!");
			return 1;
		}
		new Float:X, Float:Y, Float:Z, Float:A;
		GetPlayerPos(playerid, X, Y, Z);
		GetPlayerFacingAngle(playerid, A);
		createFactionVehicle(faction, model, X, Y, Z, A, c1, c2);
	} else {
		SendClientMessage(playerid, X11_WHITE, "USAGE: /createfactioncar [factionid] [model] [c1] [c2]");
	}
	return 1;
}
How can I add the new addsiren for 0.3.7 under this cmd?
Reply


Messages In This Thread
AddSiren 0.3.7 - by Puff - 09.09.2017, 15:10
Re: AddSiren 0.3.7 - by Dusan01 - 09.09.2017, 15:24
Re: AddSiren 0.3.7 - by Puff - 09.09.2017, 15:38
Re: AddSiren 0.3.7 - by Abagail - 09.09.2017, 16:08
Re: AddSiren 0.3.7 - by aoky - 09.09.2017, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)