Raised This Month: $ Target: $400
 0% 

get_players alternative


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 06-24-2009 , 03:43   get_players alternative
Reply With Quote #1

Any idea how I can replace get_players to get accurate players team? In some mods that often switch players team, get_players always fail to return their current team correctly

Code:
stock show_chat(iClient, szMsg[]) {     if (msgSayText == -1)         msgSayText = get_user_msgid("SayText")     if (msgSayText)     {         new iNum, iPlayers[32], iPlayer         if (is_user_alive(iClient))             get_players(iPlayers, iNum, "ch")         else             get_players(iPlayers, iNum, "bch")         for (new i=0; i < iNum; i++)         {             iPlayer = iPlayers[i]             message_begin(MSG_ONE, msgSayText, {0, 0, 0}, iPlayer)             write_byte(iPlayer)             write_string(szMsg)             message_end()         }     } }
Mlk27 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 23:37.


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