Raised This Month: $ Target: $400
 0% 

Spec Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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