Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. if(!response) return 1;
  2. new rand = random(sizeof(cdPosVehicles));
  3.  
  4. p_cdVehicle[playerid] = spawnVehicle(cdVehicles[random(sizeof(cdVehicles))], cdPosVehicles[rand][0], cdPosVehicles[rand][1], cdPosVehicles[rand][2], cdPosVehicles[rand][3], 0, 0);
  5. p_cdVehicleCP[playerid] = CreateDynamicCPCSTL(pCPVector[playerid], cdPosVehicles[rand][0], cdPosVehicles[rand][1], cdPosVehicles[rand][2], 5.0, 0, -1, playerid, 200.0);
  6.  
  7. v_cdVehicle[p_cdVehicle[playerid]] = true;
  8.  
  9. SetVehicleNumberPlate(p_cdVehicle[playerid], "{CC2929}MISJA");
  10. GetPlayerPos(playerid, p_cdLastPos[playerid][0], p_cdLastPos[playerid][1], p_cdLastPos[playerid][2]);
  11.  
  12. SetPlayerCameraPos(playerid, cdPosVehicles[rand][0] + 25.0, cdPosVehicles[rand][1] + 25.0, cdPosVehicles[rand][2] + 10.0);
  13. SetPlayerCameraLookAt(playerid, cdPosVehicles[rand][0], cdPosVehicles[rand][1], cdPosVehicles[rand][2]);
  14. SetPlayerPos2(playerid, cdPosVehicles[rand][0], cdPosVehicles[rand][1], cdPosVehicles[rand][2] - 10.0);
  15.  
  16. TogglePlayerControllableEx(playerid, false);
  17. SetTimerEx("p_cdCameraBehind", 5000, false, "d", playerid);
  18.  
  19. p_cdTask[playerid] = true;
  20. SetPlayerMapIcon(playerid, playerid, cdPosVehicles[rand][0], cdPosVehicles[rand][1], cdPosVehicles[rand][2], 55, 0);
  21.  
  22. SendClientMessageLang(playerid, "*{FF8800}(S){EAEAEA} Pojazd został oznaczony {FF8800}samochodem na mapie{EAEAEA} i jest koloru {FF8800}czarnego. Udaj się po niego.", "f");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement