15.12.2018, 22:56
I have a question,how can I make someone to can't teleport into a gang zone?
If the script is needed:
If the script is needed:
Код HTML:
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;
}


