Raised This Month: $ Target: $400
 0% 

Code not working... CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JavoL
New Member
Join Date: Jan 2016
Old 01-13-2016 , 14:30   Code not working... CS 1.6
Reply With Quote #1

Okay so I want to make a simple plugin for CS 1.6. It prints a welcome message to the player when they join. Code:
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 see the error please reply!
__________________
"When life hits you, you don't hit life, you tell your mom..." -JavoL
MoM <3
JavoL is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 01-13-2016 , 14:40   Re: Code not working... CS 1.6
Reply With Quote #2

Wrong forum section. Use the amxmod section
blaacky 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 22:23.


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