Raised This Month: $ Target: $400
 0% 

Any help for fixing code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-21-2013 , 07:28   Any help for fixing code?
Reply With Quote #1

i want to create a plugin that when a player joins to my server, a welcome message appears
i also have an error and i want to fix to show the player name on hud...
Code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>

#define PLUGIN "Welcome_Message"
#define VERSION "1.0"
#define AUTHOR "OxYgEn


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    
set_task(12.0"welcome"id)
}
public 
welcome(id)
{
    
set_dhudmessage(25516500.050.2426.01.0,0.0,0.1,false)
    
show_dhudmessage(id"Welcome Player^n %s to Our Server^nEnjoy and Have FUN!^nGaming-Power Greek Community")

__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
 



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


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