Raised This Month: $ Target: $400
 0% 

Writing a chat to all the players, except the specific player.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 09-27-2012 , 05:49   Writing a chat to all the players, except the specific player.
Reply With Quote #1

Hi everyone, here's the script:

PHP Code:
public CountVotbanPlayer(idkey)
{
    ++
g_VotePlayer[key]
    
    for(new 
0<= get_playersnum(1); i++)
    {
        if(
!= g_banPlayer)
        {
            
client_print(iprint_chat"Player :D")
        }
    }
    
    return 
PLUGIN_CONTINUE

The task of this to write to all players on the server in the chat "Player" but it is written so that the player under g_banPlayer - not to write anything in the chat.

In g_banPlayer I get players in this way:

PHP Code:
g_banPlayer g_menuPlayers[id][g_menuPosition[id] * key]; 

Last edited by Sutar; 09-27-2012 at 05:49.
Sutar 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 08:18.


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