need a "command"
#4

The code Avi Raj posted won't work.

Insert this code into the OnPlayerClickPlayer callback which you already have in your script:

pawn Код:
if(----- YOUR ADMIN VARIABLE ----- >= 5)
{
    new Float: playersPosition[3];

    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(clickedplayerid));
    SetPlayerInterior(playerid, GetPlayerInterior(clickedplayerid));

    GetPlayerPos(clickedplayerid, playersPosition[0], playersPosition[1], playersPosition[2]);
    SetPlayerPos(playerid, playersPosition[0], playersPosition[1], playersPosition[2]);
}
Replace ----- YOUR ADMIN VARIABLE ----- with your actual admin variable which is commonly PlayerInfo[playerid][pAdmin], but can differ among scripts.
Reply


Messages In This Thread
need a "command" - by Toxykx - 24.11.2013, 14:09
Re: need a "command" - by Avi Raj - 24.11.2013, 14:24
Re: need a "command" - by Toxykx - 24.11.2013, 14:34
Re: need a "command" - by SuperViper - 24.11.2013, 14:57
Re: need a "command" - by roca - 24.11.2013, 15:01
Re: need a "command" - by Toxykx - 24.11.2013, 15:21
Re: need a "command" - by Toxykx - 25.11.2013, 09:58
Re: need a "command" - by Astralis - 26.11.2013, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)