AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   VIPMenu (https://forums.alliedmods.net/showthread.php?t=193550)

kenx1998 08-20-2012 11:46

VIPMenu
 
asdasasdasdasd

dark_style 08-20-2012 11:49

Re: VIPMenu
 
Remove the alive checks in the menu's handler. Make the menu availabe only for the alive players.

kenx1998 08-20-2012 11:54

Re: VIPMenu
 
Can you do it by yourself? Im not at the best at scripting.

dark_style 08-20-2012 12:02

Re: VIPMenu
 
The reason you got errors is you forgot few } in the handler function, tho I can't see the point of using the alive check in the handler. Anyways, you can make the menu only for the alive players with the if( is_user_alive( id ) ) check before create it.

jimaway 08-20-2012 17:40

Re: VIPMenu
 
Quote:

Originally Posted by dark_style (Post 1777079)
The reason you got errors is you forgot few } in the handler function, tho I can't see the point of using the alive check in the handler. Anyways, you can make the menu only for the alive players with the if( is_user_alive( id ) ) check before create it.

it will fk up if player opens the menu while alive and chooses something while dead
also maxspeed of a player is changed when player switches weapons/zooms in with a weapon

Tonight 08-20-2012 18:19

Re: VIPMenu
 
Just some small errors... ;)

dark_style 08-21-2012 02:05

Re: VIPMenu
 
Quote:

Originally Posted by jimaway (Post 1777365)
it will fk up if player opens the menu while alive and chooses something while dead
also maxspeed of a player is changed when player switches weapons/zooms in with a weapon

Yep, it will throw runtime error, tho I think its not the best method to check if the user is alive in each case. Anyways, if he use chat message which says the menu is only available for the alive players, they will not play with the menu, umm there should be check for the health, if the user's health is like 20-30 the menu should be blocked.


All times are GMT -4. The time now is 05:45.

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