Raised This Month: $ Target: $400
 0% 

Help please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
extreem
Member
Join Date: Apr 2011
Location: Czech Republick
Old 04-18-2011 , 16:47   Help please
Reply With Quote #1

HI. Can you halp me.
I am new in scripting and want know where I must use that - %d, %s and ohter in client print. I can't find it.
I make my first plugin (or remake)
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <colorchat>

#define PLUGIN "sayomg"
#define VERSION "1.0"
#define AUTHOR "Extreem"
new p_URL
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /rs""reset_score")
    
register_clcmd("say /resetscore""reset_score")
    
p_URL register_cvar("web_url","URL")
    
}
public 
reset_score(id)
{
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    new 
name[33]
    
get_user_name(idname32)
    
ColorChat(0NORMAL"^1%s Player^4 %s^x01 reset score with usig command ^4 /rs"p_URLname)
}
public 
client_putinserver(id)
{
        
set_task(10.0"connectzprava"id__"a"1)
}
public 
connectzprava(id)
{
    new 
name[33]
    
get_user_name(idname32)
    if(
is_user_connected(id))
    {
    
ColorChat(idNORMAL"^1%s Dear^4 %s^1, for resetscore use command ^4/rs",p_URLname)
    }

And in chat I have that
Code:
sayomg Player Extreem reset score with usig command /rs
__________________
extreem is offline
Send a message via Skype™ to extreem
 



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 20:12.


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