Raised This Month: $51 Target: $400
 12% 

Menu After Player Team Join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-27-2017 , 15:37   Menu After Player Team Join
Reply With Quote #1

Hi, i need a concrete and efficient code to display a menu to player a bit after he joins in a team. For display it without conflict with buy menu (or others).

I simple need to make sure that player see the menu.

Any suggestion?? Thanks for help
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-27-2017 , 16:25   Re: Menu After Player Team Join
Reply With Quote #2

You can see the galileo's menu, as far I know, the galileo's menu doesn't conflict with any another menu.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-27-2017 , 16:47   Re: Menu After Player Team Join
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
You can see the galileo's menu, as far I know, the galileo's menu doesn't conflict with any another menu.
I will see, i need a menu to configure the server when fisrt player joins. Also what is a better way to detect when this player join (Display) menu, also when he exit the server to display for the next player?


I hope the question has not been confused.
Thanks
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-27-2017 , 17:23   Re: Menu After Player Team Join
Reply With Quote #4

This maybe help you - https://forums.alliedmods.net/showthread.php?t=65985

About checking if he exit, can you explain better?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-28-2017 , 08:55   Re: Menu After Player Team Join
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
This maybe help you - https://forums.alliedmods.net/showthread.php?t=65985

About checking if he exit, can you explain better?
Yes, i need to check if first player that entred in server exit. And if yes display menu for other player again.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-28-2017 , 13:00   Re: Menu After Player Team Join
Reply With Quote #6

Did you learn how to check if he has joined without jointeam command on console? If still without understand, check the link I gave and see all pages/replies.

About check if the player that joined is the first one, use get_playersnum() at client_putinserver() and set a bool to that player if he's the first player that has joined in the server and set a menu at him. If he disconnect, use a random player.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-28-2017 at 13:20.
EFFx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-28-2017 , 18:14   Re: Menu After Player Team Join
Reply With Quote #7

There are lot of ways to check if is first and only id, but anyway ... this thread it may help you: https://forums.alliedmods.net/showthread.php?t=191815
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 05:30.


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