27.10.2012, 19:02
pawn Код:
if (strcmp("/siren", cmdtext, true, 10) == 0) // frontal siren
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetPlayerVehicleID(playerid) == 560 && GetPlayerState(playerid) == 2 && PlayerData[playerid][LAERank] >= 1)
{
siren[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
siren2[vehicleid] = CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren[vehicleid], vehicleid, 0.000000, 0.000000, 0.809999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 | Sultan siren 1
AttachObjectToVehicle(siren2[vehicleid], vehicleid, 0.000000, 0.000000, 0.814999, 0.000000, 0.000000, 0.000000); //Object Model: 18646 | sultan siren 2
} else { SendClientMessage(playerid, RED, "You do not have a high-enough LAE rank!"); }
return 1;
}