cone97

Untitled

Jun 26th, 2017
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. YCMD:unrent(playerid, params[], help)
  2. {
  3. #pragma unused params
  4. #pragma unused help
  5. new i;
  6. if(idrentav[playerid] == -1) return SCM(playerid,-1, ""CRVENA"[INFO] "BELA"Vi niste rentali vozilo!");
  7. if(rentmin[playerid] == 0) return SCM(playerid,-1, ""CRVENA"[INFO] "BELA"Vi niste rentali vozilo!");
  8. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 462)
  9. SetVehicleToRespawn(Rentano[playerid]);
  10. SetVehicleHealth(Rentano[playerid], 999.99);
  11. RentV[idrentav[playerid]][rRentano] = -1;
  12. KillTimer(renttime[playerid]);
  13. Rentano[playerid] = -1;
  14. idrentav[playerid] = -1;
  15. rentmin[playerid] = 0;
  16. GameTextForPlayer(playerid, "~w~Vase vozilo je unrentano!", 5000, 3);
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment