Raised This Month: $ Target: $400
 0% 

Making Menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Cronck
Member
Join Date: Apr 2005
Old 04-21-2005 , 16:40  
Reply With Quote #4

Here's all my code:
Code:
#include <amxmodx> #include <fun> #include <cstrike> new PLUGIN[]="Test Script" new AUTHOR[]="Cronck" new VERSION[]="1.00" new iSilentPlayer[32][2] new iPlayerDamage[32] new MKeys9 = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9) public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)            // Commands      register_concmd("heal", "HealPlayer", 0, "admin_hello")      register_concmd("wcteleport","MovePlayer",0,"Teleport")      register_concmd("silent","SilentPlayer",0,"Silent Run")      register_concmd("money","MoneyPlayer",0,"Give Money")      register_clcmd("say testmenu", "ShowTestMenu")      register_clcmd("testmenu", "ShowTestMenu") } public HealPlayer(id) {      client_print(0, print_chat,"someone was healed!")        set_user_health(id, 225) } public MovePlayer(id) {     new origin[3]     get_user_origin(id,origin,3)  // Gets the current location the player is at     origin[2] = origin[2] + 35     set_user_origin(id,origin)   // Moves the player to the location stored in origin } public SilentPlayer(id) {     if (iSilentPlayer[id][1] == 1 ) {         set_user_footsteps(id, 0)         iSilentPlayer[id][1] = 0     }     else if (iSilentPlayer[id][1] == 0 ) {         iSilentPlayer[id][1] = 1         set_user_footsteps(id, 1)     } } public MoneyPlayer(id) {     cs_set_user_money(id, 16000, 1) } public ShowTestMenu(id) {     format(MyTestMenu, 1023, "Settings:^n^n1. Heal Yourself^n2. Silent Run/Walk^n3.Get Money^n4. Teleport to mouse point^n^n0. Cancel")     show_menu(id, MKeys9, MyTestMenu) }     public PerformTestMenu(id, key) {    if (key == 1)     {          HealPlayer(id)     } else if (key == 2) {         SilentPlayer(id)        } else if (key == 3) {         MoneyPlayer(id)     } else if (key == 4) {         MovePlayer(id)     } }
Cronck is offline
 



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 09:50.


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