Advertisement
Guest User

0.3.7. siren command

a guest
May 5th, 2015
791
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. CMD:siren(playerid, params[])
  2. {
  3. if (GetFactionType(playerid) != POLICE) // Only members of the PD are able to use the cmmand.
  4. return SendErrorMessage(playerid, "You are not memebr of the Police Department");
  5.  
  6. if (!IsADetectiveVehicle(GetPlayerVehicleID(playerid))) // Using the stock below.
  7. return SendErrorMessage(playerid, "You are not inside a detective vehicle.");
  8. new objectid = CreateObject(19620, 0, 0, 0, 0, 0, 0);
  9. AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.854999, 0.000000, 0.000000, 0.000000);
  10. SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s places a siren on their vehicle and turns it on.", ReturnName(playerid, 0));
  11. return 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement