30.12.2014, 07:12
i m using a system in which when admin is on-duty and h clicks on map anywhere he wants and he get teleported there but when i added those codes it isnt working can u plz fix it for me?
Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx("CheckTeleport", 5000,false,"iffffff", playerid, x,y,z,fX,fY,fZ);
if(PlayerInfo[playerid][Level] >= 1)
{
if(PlayerInfo[playerid][OnDuty] == 1)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
}
return 1;
}

