SA-MP Forums Archive
How do i make it so in a certain virtual world people cant use any command? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i make it so in a certain virtual world people cant use any command? (/showthread.php?tid=147558)



How do i make it so in a certain virtual world people cant use any command? - Apply - 13.05.2010

How do i make it so in a certain virtual world people cant use any command?


Re: How do i make it so in a certain virtual world people cant use any command? - -Rebel Son- - 13.05.2010

Quote:

if(GetPlayerVirtualWorld(playerid) ==id;

maybe? not sure.


Re: How do i make it so in a certain virtual world people cant use any command? - CuervO - 13.05.2010

pawn Код:
new world = GetPlayerVirtualWorld(playerid);
if(world == modify_this_to_the_world_number_that_you_want)
{
// do something
}



Re: How do i make it so in a certain virtual world people cant use any command? - AK47KILLA - 13.05.2010

Give something like this a try?

pawn Код:
if(strcmp("/yourcommand", cmdtext, true) == 0)
    {
          if(GetPlayerVirtualWorld(playerid) == virtual_world_id)
          {
                //do something
          }
          return 1;
    }



Re: How do i make it so in a certain virtual world people cant use any command? - Apply - 13.05.2010

Thanks guys, You helped me bigtime!