Alex.12 Posted January 22, 2019 Posted January 22, 2019 Bun deci, cum pot face aceea chesti cand ai admin si pui cp pe harta sa te teleporteze la el?
andrei9971 Posted January 22, 2019 Posted January 22, 2019 (edited) public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { SetPlayerPosFindZ(playerid, fX, fY, fZ); return 1; } Mai multe detalii pe wiki: https://wiki.sa-mp.com/wiki/OnPlayerClickMap Edited January 22, 2019 by andrei9971
khain.dev Posted January 25, 2019 Posted January 25, 2019 // Se poate si ceva mai bun de realizat ca exemplu putem sa facem ca adminul daca e in transport sa se teleporteze tot cu transport public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) Citat { { new vehicleid = GetPlayerVehicleID(playerid); // aflam id transportului in care este adminul if(vehicleid > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // aflam daca el este la volan { SetVehiclePos(vehicleid, fX, fY, fZ); } else { SetPlayerPos(playerid, fX, fY, fZ); } } return 1; } // dupa parerea mea asa e mai bine 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now