Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:closestcar(playerid, params[]) // Inceput comanda
- { // Deschidem acolada
- if(PlayerInfo[playerid][pAdmin] < 1)return SCM(playerid, -1, AdminOnly); // Verificam daca acel player are admin, si daca nu are sa ii arate mesajul de la 'AdminOnly'.
- if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul."); // Verificam daca adminul este deja intr-o masina.
- new thacar = GetClosestVehicle2(playerid, 100000);
- PutPlayerInVehicle(playerid, thacar, 0); // Cand da (/closestcar) sa il pun direct in masina.
- SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul."); // Ii arata mesajul ca a fost teleportat la masina ce mai apoate e el.
- return 1; // Se termina comanda
- } // Inchidem acolada
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement