01.03.2013, 00:56
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
}