Raised This Month: $ Target: $400
 0% 

problem with random player script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
12345
Senior Member
Join Date: Dec 2004
Old 08-15-2008 , 20:03   problem with random player script
Reply With Quote #1

i get this plugin to get 4 players on restart round, but get all players.

tnx for advanced

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
register_plugin("AMX Armas""1.1.1""Yokil SpyWare")
register_event("ResetHUD""newround""b")
register_cvar("amx_random","0");
return 
PLUGIN_CONTINUE
}

public 
newround(id)
{
new 
name[3]
new 
iArray[3];
get_user_nameid name 31 );
 
client_print(iArray[0], print_chat"Tudo bem, tudo esta funcionando %s, veja se todos falaram. 4 pessoas!"name);
}


stock get_random_players(const iArray[3])
{
*new 
iPlayers[3], iNum;
*
get_players(iPlayersiNum"ch");
*
*for(new 
i++)
*{
iArray[i] = iPlayers[random(iNum)];
*}

12345 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:06.


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