Raised This Month: $ Target: $400
 0% 

Spec Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-29-2009 , 17:52   Spec Message
Reply With Quote #1

I wanted to put a message for spectators on roundstart:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
public plugin_init()
{
    
register_plugin("Spec Message""1.0""kadir")
    
register_logevent("roundstart"2"0=World triggered""1=Round_Start")
}
 
public 
roundstart()
{
    
set_task(1.0"checkSpec")
}
 
public 
checkSpec(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_SPECTATOR)
    {
        
set_hudmessage(02550, -1.00.006.012.0)
        
show_hudmessage(id"TEST TEST!")
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

I don't have any errors, but this code doesn't work for me, any ideas?
KadiR is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-29-2009 , 18:05   Re: Spec Message
Reply With Quote #2

you have to loop between all players.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 04:01.


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