Raised This Month: $ Target: $400
 0% 

How To Do It ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-25-2009 , 22:53   Re: How To Do It ?
Reply With Quote #6

Yeah!please look at my code!
PHP Code:
new pCvar_TaskTime
 
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN_NAME "my plugin"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "K.K.Lv"
 
public plugin_init()
{
 
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
pCvar_TaskTime register_cvar("amx_task_time""8")
 
register_event("HLTV""NewRound""a""1=0""2=0")
}
 
public 
NewRound()
{
 for (new 
id 1id get_maxplayers(); id++)
 {
  static 
iMsg[128
  format
(iMsg127"Hello This is a Example")
  
Create_Show(idiMsg)
 }
}
 
stock Create_Show(idiMsg[])
{
 
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("TutorText"), {000}, id)
 
write_string(iMsg)
 
write_byte(0)
 
write_short(0)
 
write_short(0)
 
message_end()
 
 
remove_task(id)
 
set_task(get_pcvar_float(pCvar_TaskTime), "Remove_Show"id)
}
 
public 
Remove_Show(id)
{
 
remove_task(id)
 
 
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("TutorClose"), {000}, id)
 
message_end()

This my simple code !can some one point the bug out !
thx !!!
__________________
QQ:116268742

Last edited by K.K.Lv; 08-25-2009 at 22:55.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
 



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 15:11.


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