Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  2. {
  3.     if(!pInfo[playerid][pAdmin] && !pInfo[playerid][pSetMark])
  4.     {
  5.         ACInfo[playerid][acCheckMapTP] = 1;
  6.         ACInfo[playerid][acMapTPLastClick] = GetTickCount();
  7.         ACInfo[playerid][acMapTP][0] = fX;
  8.         ACInfo[playerid][acMapTP][1] = fY;
  9.         ACInfo[playerid][acMapTP][2] = fZ;
  10.     }
  11.     if(gAdminLogged[playerid])
  12.     {
  13.         if(!pInfo[playerid][pSetMark] && pInfo[playerid][pAdmin] < ADM_ADMIN) return SendClientMessage(playerid, COLOR_GREY, "Доступно с 4 уровня администратора");
  14.         SetPlayerPosFindZ(playerid, fX, fY, fZ);
  15.     }
  16.     if(pInfo[playerid][pSetMark])
  17.     {
  18.         SetPlayerPosFindZ(playerid, fX, fY, fZ);
  19.     }
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement