04.08.2010, 02:35
It's possible to do it all in one line like this...
But its better to store the player's virtual world in a variable:
pawn Код:
if(GetPlayerVirtualWorld(playerid) != 3 && GetPlayerVirtualWorld(playerid) != 4) return SendClientMessage(playerid, 0xAFFFFAF, "ERROR: You cannot use this command here.");
pawn Код:
new pWorld = GetPlayerVirtualWorld(playerid);
if(pWorld != 3 && pWorld != 4) return SendClientMessage(playerid, 0xAFFFFAF, "ERROR: You cannot use this command here.");
//If the player isn't in virtual world 3 or 4...