No commands on virtual world
#2

There is really no good way to do this by processing the commands inside of OnPlayerCommandText. I suppose you could check if they are in that desired virtual world at the top, and then make that command available to them, otherwise return something to notify them:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(GetPlayerVirtualWorld(playerid) == 6)
    {
        if(strcmp(cmd, "/ayudasancion", true) == 0)
        {
            // code
        }
        else return SendClientMessage(playerid, -1, "You can only use /ayudasancion inside of your current VW.");
    }
    // rest of the commands
}
Reply


Messages In This Thread
No commands on virtual world - by RiChArD_A - 01.03.2013, 00:50
Re: No commands on virtual world - by Bakr - 01.03.2013, 00:56
Re: No commands on virtual world - by 2KY - 01.03.2013, 01:00
Respuesta: Re: No commands on virtual world - by RiChArD_A - 01.03.2013, 01:09
Re: No commands on virtual world - by Bakr - 01.03.2013, 01:19
Respuesta: Re: No commands on virtual world - by RiChArD_A - 01.03.2013, 01:24
Re: No commands on virtual world - by Bakr - 01.03.2013, 01:36
Respuesta: Re: No commands on virtual world - by RiChArD_A - 01.03.2013, 12:30
Re: No commands on virtual world - by Bakr - 01.03.2013, 15:58
Re: No commands on virtual world - by Kenway - 01.03.2013, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)