AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How To Do It ? (https://forums.alliedmods.net/showthread.php?t=101572)

K.K.Lv 08-25-2009 05:01

How To Do It ?
 
Hi guys !
many days ago !
I saw a plugin ! can show MSG with a small window to all player!
like this :
http://i64.servimg.com/u/f64/13/44/61/26/exampl10.jpg
who can tell me !thx advance !!!

tuty 08-25-2009 05:13

Re: How To Do It ?
 
http://forums.alliedmods.net/showthread.php?p=813033

K.K.Lv 08-25-2009 06:02

Re: How To Do It ?
 
I know this plugin! and I made a code ! but it can't show the window like it !

tuty 08-25-2009 06:32

Re: How To Do It ?
 
are u.. st...id?

look at cvars ffs.. can show you like you want, has different type of boxes..

Arkshine 08-25-2009 06:36

Re: How To Do It ?
 
Quote:

Originally Posted by K.K.Lv (Post 912206)
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.

K.K.Lv 08-25-2009 22:53

Re: How To Do It ?
 
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 !!!

Arkshine 08-26-2009 03:15

Re: How To Do It ?
 
You forget a write_short() for TutorText. Don't try to do another plugin if you don't know to code.

tuty 08-26-2009 06:26

Re: How To Do It ?
 
also in your code, you need to precache the tga's :P

K.K.Lv 08-29-2009 08:00

Re: How To Do It ?
 
Quote:

Originally Posted by tuty (Post 913379)
also in your code, you need to precache the tga's :P

yeah!!
and how to use the tga ?

xPaw 08-29-2009 08:35

Re: How To Do It ?
 
Watch that damn plugin ?


All times are GMT -4. The time now is 15:11.

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