Raised This Month: $ Target: $400
 0% 

How to show menu when respawn ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-30-2014 , 06:38   How to show menu when respawn ?
Reply With Quote #1

Hello,
I want to know how to show a menu (i already has menu plugin)
I mean how to do, when player spawn a say command /menu exec on him ?
Awesome_man is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-30-2014 , 06:57   Re: How to show menu when respawn ?
Reply With Quote #2

PHP Code:
engclient_cmd(id"say /menu"
__________________

Last edited by Flick3rR; 06-30-2014 at 06:57.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-30-2014 , 07:01   Re: How to show menu when respawn ?
Reply With Quote #3

Quote:
Originally Posted by Flick3rR View Post
PHP Code:
engclient_cmd(id"say /menu"
No bro, i am beginner scripter.. I only have menu i want every player type /menu when they respawn then dey can access menu
Awesome_man is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-30-2014 , 09:29   Re: How to show menu when respawn ?
Reply With Quote #4

Quote:
Originally Posted by Flick3rR View Post
PHP Code:
engclient_cmd(id"say /menu"
Just execute it on spawn?!
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-30-2014 , 09:39   Re: How to show menu when respawn ?
Reply With Quote #5

Quote:
Originally Posted by Flick3rR View Post
Just execute it on spawn?!
How ? i'm noob and beginner scripter bro :\ please help

Edit :-

Where to put this ?

Code:
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
 
public fwHamPlayerSpawnPost(iPlayer) {
        if (is_user_alive(iPlayer)) {
                // player spawned
        }
} 

engclient_cmd(id, "say /menu")  

Last edited by Awesome_man; 06-30-2014 at 09:41.
Awesome_man is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-30-2014 , 07:37   Re: How to show menu when respawn ?
Reply With Quote #6

Then just display the menu on their respawn?! Or if you want it with command, register the /menu command -->
PHP Code:
register_clcmd("say /menu""cmdDisplayMenu"
and then in the cmdDisplayMenu function, you display the menu.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-30-2014 , 09:18   Re: How to show menu when respawn ?
Reply With Quote #7

ok

Last edited by Awesome_man; 11-07-2014 at 22:30.
Awesome_man is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-30-2014 , 10:31   Re: How to show menu when respawn ?
Reply With Quote #8

INSIDE THE FUNCTION?! o.O O.o
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-30-2014 , 11:19   Re: How to show menu when respawn ?
Reply With Quote #9

Quote:
Originally Posted by Flick3rR View Post
INSIDE THE FUNCTION?! o.O O.o
:'( i mean where to put dis in my code ? plz coperate i'm just beginner :\
Awesome_man is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-30-2014 , 20:59   Re: How to show menu when respawn ?
Reply With Quote #10

Quote:
Originally Posted by Awesome_man View Post
:'( i mean where to put dis in my code ? plz coperate i'm just beginner :\
How about you try learning? We are here to help, not to hold you hand
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 21:15.


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