10.02.2013, 14:11
The siren dosent show up when i type the code, and the message dosent show up either. I am inside the water plane vehicle, model id 460 when i type the command.
Above OnFilterScriptInit()
Inside of OnFilterScriptInit()
On the bottom of my FS.
I don't see why this dosent work I got no errors.
Above OnFilterScriptInit()
pawn Код:
new obj1;
new obj2;
new obj3;
Inside of OnFilterScriptInit()
pawn Код:
obj1 = CreateObject(18646, 0, 0, 0, 0, 0, 0);
obj2 = CreateObject(18646, 0, 0, 0, 0, 0, 0);
obj3 = CreateObject(18646, 0, 0, 0, 0, 0, 0);
On the bottom of my FS.
pawn Код:
COMMAND:sirenson2(playerid, params[])
{
new VehModel;
if(GetVehicleModel(VehModel) == 460)
{
new VehID;
VehID = GetPlayerVehicleID(playerid);
GetPlayerVehicleID(playerid);
AttachObjectToVehicle(obj1, VehID, -5.025067, 0.389999, 1.184999, -2.010001, 0.000000, 0.000000);
AttachObjectToVehicle(obj2, VehID, 4.600057, 0.374999, 1.164999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(obj3, VehID, 0.000000, 2.365006, 0.559999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_BLUE, "I don't get this message.");
}
return 1;
}