Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:closestcar(playerid, params[], help) {
- if(PlayerInfo[playerid][pAdmin] < 1)return SCM(playerid, -1, AdminOnly);
- if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul.");
- new thacar = GetClosestVehicle2(playerid, 100000); //aici este linia la care primesc eroarea!
- PutPlayerInVehicle(playerid, thacar, 0);
- SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul.");
- return 1;
- }
Add Comment
Please, Sign In to add comment