Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:unrent(playerid, params[], help)
- {
- #pragma unused params
- #pragma unused help
- new i;
- if(idrentav[playerid] == -1) return SCM(playerid,-1, ""CRVENA"[INFO] "BELA"Vi niste rentali vozilo!");
- if(rentmin[playerid] == 0) return SCM(playerid,-1, ""CRVENA"[INFO] "BELA"Vi niste rentali vozilo!");
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 462)
- SetVehicleToRespawn(Rentano[playerid]);
- SetVehicleHealth(Rentano[playerid], 999.99);
- RentV[idrentav[playerid]][rRentano] = -1;
- KillTimer(renttime[playerid]);
- Rentano[playerid] = -1;
- idrentav[playerid] = -1;
- rentmin[playerid] = 0;
- GameTextForPlayer(playerid, "~w~Vase vozilo je unrentano!", 5000, 3);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment