AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   jailbreak menu (https://forums.alliedmods.net/showthread.php?t=183306)

imnoobsvk 04-20-2012 11:39

jailbreak menu
 
Hello, im making menu for jailbreak and i dont know how to make that only one player can be simon, can anyone help me? xD

claudiuhks 04-20-2012 11:43

Re: jailbreak menu
 
How to check whether this player should be Simon from a list of players?
For example, you can set one player as Simon if he has a name that contains string [BR].

imnoobsvk 04-20-2012 12:22

Re: jailbreak menu
 
and how i can make a list of players and check if they meet the requirements?

claudiuhks 04-20-2012 14:03

Re: jailbreak menu
 
PHP Code:

static iPlayers32 ], iNumi;
get_playersiPlayersiNum"a" );

/*
  Flag "a" means dead players will be skiped
*/

for( 0iNumi++ )
{
  static 
cName32 ];
  
get_user_nameiPlayers], cName31 );

  if( 
containicName"[BR]" ) != -)
  {
    
MakeSimoniPlayers] );

    break;
  }
}

/*
  And to take a random player
*/

return iPlayersrandom_num0iNum ) ]; 


imnoobsvk 04-20-2012 14:13

Re: jailbreak menu
 
ok but i want only one player to be simon, if someone take simon, the others player cant take it again, thanks xD

Ex1ne 04-20-2012 16:25

Re: jailbreak menu
 
You can use my commander plugin. :roll:

imnoobsvk 04-20-2012 20:23

Re: jailbreak menu
 
i need something easier :D again... i have menu and in the menu is item to be simon, andi need make this: if i or someone else take the simon then no one cant take it again xD

Ex1ne 04-20-2012 20:40

Re: jailbreak menu
 
Ok, then what simon plugin do you use if you use one?

imnoobsvk 04-20-2012 20:46

Re: jailbreak menu
 
i have this http://amxx.pl/topic/43599-jbextreme-menu/ + little edited :D

Ex1ne 04-20-2012 20:59

Re: jailbreak menu
 
I don't know polish. o.o
Should i make a new one, like if you type /simon you get simon status + access?


All times are GMT -4. The time now is 07:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.