public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(CosminInfo[playerid][pVIP] == 10)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
GameTextForPlayer(playerid, "~w~~h~You have been ~n~ ~g~~h~Teleported ~n~ ~r~~h~To the location!", 4000, 3);
}
if(CosminInfo[playerid][pVIP] == 10)
{
if(GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, Float:fX, Float:fY, Float:fZ);
GameTextForPlayer(playerid, "~w~~h~You have been ~n~ ~g~~h~Teleported ~n~ ~r~~h~To the location!", 4000, 3);
}
}
return 1;
}
|
you have to check if the given coordinates (fX,fY,fZ) is in a gang zone.
you can do it same as player's coordinates, when you're checking to start a gangwar or something like that. |