Raised This Month: $ Target: $400
 0% 

Help on DeathrunMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-19-2011 , 03:49   Re: Help on DeathrunMod
Reply With Quote #1

PHP Code:
new menu menu_create("Save or use your life?""menu_handler")
menu_additem(menu"Save""1")
menu_additem(menu"Use""2")
menu_display(idmenu0
PHP Code:
public menu_handler(idmenuitem) {
if(
item == MENU_EXIT) {
        
menu_destroy(menu)
}

if(!
is_user_alive(id)) {
     switch(
item) {
           case 
0// Save: NVAULT or SQL.
           
case 1ExecuteHamB(Ham_CS_RoundRespawnid// Respawn
        
}
        else {
             
client_print(idprint_chat"You're already alive!")
        }

Something like this should work.
__________________

Last edited by Napoleon_be; 12-19-2011 at 03:51.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 12:01.


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