AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Pop-up same as in Ludwig van's Jetpack (https://forums.alliedmods.net/showthread.php?t=13827)

cs.war3lt.com 05-30-2005 17:00

Pop-up same as in Ludwig van's Jetpack
 
Yeah hello everyone, i need help.
I need support script same as in "Ludwig van's Jetpack"
When you use "Ludwig van's Jetpack" and type (in game) /jetpack, then you get pop-up screen with help how tu use "Ludwig van's Jetpack". Could some one make same think just on type /help it whould pop-up text - Here is the support..
:!: :?: Hurry plzz :D :!: :?:

v3x 05-30-2005 17:07

Take a look at this thing I found, it's pretty useful:
Link

cs.war3lt.com 05-30-2005 17:22

Look's nice :D, but i didnt found nothig like that and my english is not very good so... could you write my this scripts plzz

http://sigs.spywire.net/sig1.gif
PRES HERE

v3x 05-30-2005 17:28

Code:
#include <amxmodx> new PLUGIN[]="MOTD Help" new VERSION[]="0.1" new AUTHOR[]="Jawn Doh" new g_FileLocation[]="path/to/help.htm" // Edit this line public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_clcmd("say /help","show_help_win",-1) } public show_help_win(id) {     show_motd(id,g_FileLocation,"Server Help:")     return PLUGIN_HANDLED }
:o

cs.war3lt.com 05-30-2005 17:31

Thanx

cs.war3lt.com 05-30-2005 18:03

Osam Thxxxx, this is just what i was looking for Thxxxx 100000 times

123 06-01-2005 17:59

Is it possible to make this with both a /help and a /forum ?
Or do I have to make two plugins ?

DahVid 06-01-2005 19:43

Sure is
Code:

#include <amxmodx>

new PLUGIN[]="MOTD Help"
new VERSION[]="0.1"
new AUTHOR[]="Jawn Doh"
new g_FileLocation[1][]="path/to/help.htm" // Edit this line
new g_FileLocation[2][]="path/to/help.htm" // Edit this line

public plugin_init() {
    register_plugin(PLUGIN,VERSION,AUTHOR)
    register_clcmd("say /help","show_help_win",-1)
}

public show_help_win(id) {
    show_motd(id,g_FileLocation[1],"Server Help:")
    return PLUGIN_HANDLED
}

public show_forum_win(id) {
    show_motd(id,g_FileLocation[2],"Server Forum:")
    return PLUGIN_HANDLED
}

I don't know if thats what your looking for.

RaD-PimP 06-01-2005 19:56

Code:
#include <amxmodx> new PLUGIN[]="MOTD Help" new VERSION[]="0.1" new AUTHOR[]="Jawn Doh" new g_FileLocation[]="path/to/help.htm" // Edit this line new g_ForumLocation[]="path/to/forum.htm" // Edit this line public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_clcmd("say /help","show_help_win",-1)     register_clcmd("say /forum","show_forum_win",-1) } public show_help_win(id) {     show_motd(id,g_FileLocation,"Server Help:")     return PLUGIN_HANDLED } public show_forum_win(id) {     show_motd(id,g_ForumLocation,"Forum:")     return PLUGIN_HANDLED }

johnjg75 06-01-2005 19:58

Code:
new g_FileLocation[]="path/to/help.htm" // Edit this line new g_FileLocation[]="path/to/forum.htm" // Edit this line
they cant both be the same var
Code:
show_motd(id,g_FileLocation,"Forum:") show_motd(id,g_FileLocation,"Server Help:")


All times are GMT -4. The time now is 16:40.

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