Raised This Month: $ Target: $400
 0% 

Why does my code not work? CS 1.6


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JavoL
New Member
Join Date: Jan 2016
Old 01-13-2016 , 15:28   Why does my code not work? CS 1.6
Reply With Quote #1

Okay so I'm making a small plugin called Welcome Message
I'm a beginner so what does the plugin do is when a player joins a server public client_connect(id) it will print a message in chat "Welcome to the server blah blah blah" but in color! The thing is when I open cs and test it nothing happens!
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat> //I'm using colorchat for colors :3

#define PLUGIN "WelcomeMessage"
#define VERSION "1.0"
#define AUTHOR "JavoL" //<-- That's my name :O


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)    
}

public 
client_connect(id)
{
    new 
szName[33//User's name
    
get_user_name(idszNamecharsmax(szName)) //Well... You kno'
    
ColorChat(idTEAM_COLOR"^3Dobrodosao na server ^4%s^3! ^3Say: ^4/pravila ^3da vidite pravila servera."szName//Message

If you can see the problem please, REPLY!
__________________
"When life hits you, you don't hit life, you tell your mom..." -JavoL
MoM <3
JavoL is offline
 


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 09:25.


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