Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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
bibu
Veteran Member
Join Date: Sep 2010
Old 09-27-2012 , 06:37   Re: Writing a chat to all the players, except the specific player.
Reply With Quote #2

Try this:

PHP Code:
public CountVotbanPlayer(idkey)
{
    ++
g_VotePlayer[key]
     
    new 
iPlayers[32], iNumid 
    get_players
(iPlayersiNum
    for(new 
ii<iNumi++) 
    {
        
id iPlayers[i]
        
        if(
id != g_banPlayer)
        {
            
client_print(iprint_chat"Player :D"
        }
    }

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 09-27-2012 , 07:00   Re: Writing a chat to all the players, except the specific player.
Reply With Quote #3

Thank you) Now I will check)
Sutar is offline
Reply



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