Raised This Month: $ Target: $400
 0% 

Button Spam


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-10-2010 , 07:05   Button Spam
Reply With Quote #1

Im using this Code, and Players can Press "E" alltime an are totaly Flooding the Server whit messages.
How i can fix this?

PHP Code:

RegisterHam
(Ham_Use"func_button""fwdButton");

public 
fwdButton(entid)
{
    
//id = index of player who pressed the button
    //ent = entity index of the button
    
    
new PlayerName[33]
    
    
get_user_name(idPlayerName32)
    
    new 
mapname[33]
    
get_mapname(mapname32)
        
    if (
equali(mapname,"jb_mania_fixed"))
    {
        switch(
ent)
        {
            case 
329:
            {
                
ColorChat(0RED"%s %s starts a Cool Sound in the Disco",PREFIXPlayerName )
            }
        }
    }
    

__________________

Some People brings Happynes by Coming
Some by Going
Stylaa is offline
Send a message via ICQ to Stylaa
 


Thread Tools
Display Modes

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 10:21.


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