Map teleport bugged
#5

pawn Код:
new bool:TeleEnabled[MAX_PLAYERS char];

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

CMD:maptp(playerid,params[])
{
    TeleEnabled{playerid} = !TeleEnabled{playerid};
    switch(TeleEnabled{playerid})
    {
        case true:  SendClientMessage(playerid,RED,"You have enabled teleporting!");
        case false: SendClientMessage(playerid,RED,"You have disabled teleporting!");
    }
    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: 2 Guest(s)