this is my code
but i don't know how to random array, i'v been search in the forum.
PHP Code:
#include < amxmodx >
new Array:Games
new gGamesCount;
public plugin_natives( )
{
register_native( "jb_games_register", "native_games_register" );
}
public native_games_register( plugin, params )
{
new name[ 64 ];
get_string( 1, name, charsmax( name ) )
ArrayPushString( Games, name )
gGamesCount++
return gGamesCount - 1;
}
public plugin_init( )
{
register_clcmd( "say /random", "random_array" );
Games = ArrayCreate( 36, 1 );
}
public random_array( id )
{
// ok... what next?
}
thanks for help.