Guest User

Untitled

a guest
Feb 28th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. COMMAND:spd(playerid,params[])
  2. {
  3. if( specialybe[ playerid ] == POLICININKAS)
  4. if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,COLOR_RED,"Turi būti mašinoje"); return 1; }
  5. if(!IsObjectAttached[playerid])
  6. {
  7. new vehicleid = GetPlayerVehicleID(playerid);
  8.  
  9. AttachedObject[playerid][0] = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  10. AttachedObject[playerid][1] = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  11.  
  12. SetObjectMaterialText(AttachedObject[playerid][1], "Policija", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, COLOR_WHITE, 0, 1);
  13. SetObjectMaterialText(AttachedObject[playerid][0], "Policija", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, COLOR_WHITE, 0, 1);
  14.  
  15. AttachObjectToVehicle(AttachedObject[playerid][0], vehicleid, 1.099999, 0.000000, -0.169999, 0.000000, 0.000000, 0.000000);
  16. AttachObjectToVehicle(AttachedObject[playerid][1], vehicleid, -1.099999, 0.000000, -0.169999, 0.000000, 0.000000, -179.895095);
  17. }
  18. else
  19. {
  20. DestroyObject(AttachedObject[playerid][0]);
  21. DestroyObject(AttachedObject[playerid][1]);
  22. IsObjectAttached[playerid] = false;
  23. }
  24.  
  25. return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment