Map teleport bugged
#2

Try:

You must have new TeleEnabled[MAX_PLAYERS]; on top of gamemode
or like this

pawn Код:
new TeleEnabled[MAX_PLAYERS];
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(TeleEnabled[playerid] == 1 && PlayerInfo [playerid][AdminLevel] >= 1)
    {
    SetPlayerPosFindZ(playerid, fX, fY, fZ);
    }
}

CMD:maptp(playerid,params[])
{
    if(TeleEnabled[playerid] == 0)
    {
    TeleEnabled[playerid] = 1;
    SendClientMessage(playerid,RED,"You have enabled teleporting!");
    return 0;
    }
    if(TeleEnabled[playerid] == 1)
    {
    TeleEnabled[playerid] = 0;
    SendClientMessage(playerid,RED,"You have disabled teleporting!");
    return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Map teleport bugged - by ChromeMenu - 01.04.2014, 23:47
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:14
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 00:17
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:18
Re: Map teleport bugged - by Jefff - 02.04.2014, 00:19
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 00:30
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:44
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 01:10
Re: Map teleport bugged - by K9IsGodly - 02.04.2014, 01:15
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 01:18

Forum Jump:


Users browsing this thread: 4 Guest(s)