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
#2

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.
Reply
#3

Quote:
Originally Posted by Mugala
Посмотреть сообщение
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.
So,If I try to change "fX, fY, fZ" with, ex: "fX1, fY1, fZ" will work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)