Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  2. {
  3. if(PlayerInfo[playerid][pAdmin] > 0 && AdminDuty[playerid] == 1)
  4. {
  5. if(GetPlayerState(playerid) == 2)
  6. {
  7. new tmpcar = GetPlayerVehicleID(playerid);
  8. SetVehiclePos(tmpcar, fX, fY, fZ+5);
  9. GetVehiclePos(tmpcar, old_veh_pos[tmpcar][0], old_veh_pos[tmpcar][1], old_veh_pos[tmpcar][2]);
  10. }
  11. else
  12. {
  13. SetPlayerPosFindZ(playerid, fX, fY, fZ+5);
  14. }
  15. }
  16. else if(InHQ[playerid] == -1 && InHouse[playerid] == -1 && InBussines[playerid] == -1) {
  17. GetPlayerPos(playerid, TpTestx[playerid], TpTesty[playerid], TpTestz[playerid]);
  18. SetTimerEx("TpTest",4000, false, "i", playerid);
  19. }
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement