- 909
- 371
Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(!pInfo[playerid][pAdmin] && !pInfo[playerid][pSetMark])
{
ACInfo[playerid][acCheckMapTP] = 1;
ACInfo[playerid][acMapTPLastClick] = GetTickCount();
ACInfo[playerid][acMapTP][0] = fX;
ACInfo[playerid][acMapTP][1] = fY;
ACInfo[playerid][acMapTP][2] = fZ;
}
if(gAdminLogged[playerid])
{
if(!pInfo[playerid][pSetMark] && pInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GREY, "Доступно с 4 уровня администратора");
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
if(pInfo[playerid][pSetMark])
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
return 1;
}