Teleport
#1

I have a question,how can I make someone to can't teleport into a gang zone?

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;
}
Reply


Messages In This Thread
Teleport - by SeeNN - 15.12.2018, 22:56
Re: Teleport - by Mugala - 16.12.2018, 01:18
Re: Teleport - by SeeNN - 16.12.2018, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)