Quote:
Originally Posted by wickedd
Get players should work, just make sure it's being called.
@Black Rose
You don't need to check if he's connected and alive. If he's alive he must be connected.
|
Here is it being called. It's being called exactly the same on few other games on this plugin.
PHP Code:
public SniperGame()
{
g_iCurrentGame = GAME_SNIPER
new iPlayers[32]
new iNum
new id
set_cvar_num("mp_friendlyfire",1)
get_players( iPlayers, iNum, "a" )
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i]
Should be something wrong i think.
And here is a working one that is on few other.
I just want to see what the problem is.
PHP Code:
public Spartaday()
{
g_iCurrentGame = GAME_SPARTA
new iPlayers[32]
new iNum
new id
get_players( iPlayers, iNum, "a" )
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i]