Raised This Month: $ Target: $400
 0% 

[INCORRECT TITLE] HELP ME FAST!!!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-19-2011 , 05:24   Re: HELP ME FAST!!!!!
#3

You want to make that player would get message, that they would need to write /nagrada?
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "MOTD"
#define VERSION "1.0"
#define AUTHOR "Massive Boredom"



public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /nagrada","motd")
    
register_clcmd("say_team /nagrada","motd")
    
    
register_cvar("Advertise","90")
    
set_task(get_cvar_float("Advertise"),"adverti se" "b")
}



public 
motd(id,level,cid)
{
    new 
configsdir[200]
    new 
MOTDfile[200]
    
    
get_configsdir(configsdir,199)
    
format(MOTDfile,199,"%s/motd/nagrada.html",configsdir)
    
    
show_motd(id,MOTDfile)
    
    return 
PLUGIN_HANDLED
}

public 
client_putinserver(id)
{
    if (!
task_exists(id)) set_task(60.0"PrintText" ,id)
}

public 
PrintText(id)
{
    
client_print(id,print_chat,"Kucaj /nagrada da vidite sta dobijaju prva 3 na ranku !")

Something like this?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



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 08:35.


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