28.06.2015, 16:31
Hello this is the code i am using for map teleport it was working eariler but dont know why its not working ??
Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(PlayerInfo[playerid][Level] >= 1 || PlayerInfo[playerid][OnDuty] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid;
vid = GetPlayerVehicleID(playerid);
SetVehiclePos(vid, fX, fY, fZ);
SetPlayerPosFindZ(playerid, fX, fY, fZ);
PutPlayerInVehicle(playerid, vid, 0);
}
else
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
}
return 1;
}



