Raised This Month: $ Target: $400
 0% 

How To Do It ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-25-2009 , 05:01   How To Do It ?
Reply With Quote #1

Hi guys !
many days ago !
I saw a plugin ! can show MSG with a small window to all player!
like this :

who can tell me !thx advance !!!
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-25-2009 , 05:13   Re: How To Do It ?
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=813033
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-25-2009 , 06:02   Re: How To Do It ?
Reply With Quote #3

I know this plugin! and I made a code ! but it can't show the window like it !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-25-2009 , 06:32   Re: How To Do It ?
Reply With Quote #4

are u.. st...id?

look at cvars ffs.. can show you like you want, has different type of boxes..
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-25-2009 , 06:36   Re: How To Do It ?
Reply With Quote #5

Quote:
Originally Posted by K.K.Lv View Post
I know this plugin! and I made a code ! but it can't show the window like it !
You have 8 styles available, so take your time an review the code.
__________________
Arkshine is offline
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-26-2009 , 03:15   Re: How To Do It ?
Reply With Quote #7

You forget a write_short() for TutorText. Don't try to do another plugin if you don't know to code.
__________________
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-26-2009 , 06:26   Re: How To Do It ?
Reply With Quote #8

also in your code, you need to precache the tga's
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-29-2009 , 08:00   Re: How To Do It ?
Reply With Quote #9

Quote:
Originally Posted by tuty View Post
also in your code, you need to precache the tga's
yeah!!
and how to use the tga ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-29-2009 , 08:35   Re: How To Do It ?
Reply With Quote #10

Watch that damn plugin ?
__________________
xPaw 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 15:11.


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