AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu only for tr (https://forums.alliedmods.net/showthread.php?t=129893)

mailkman 06-18-2010 00:13

Menu only for tr
 
I have this menu, and I want only works to terrorists
PHP Code:

new szMenuBody
new len format(szMenuBody511"\r[PFM] \wMenu^n")
len += format(szMenuBody[len], 511-len"^n\r1. \wUpgrades")
len += format(szMenuBody[len], 511-len"^n\r2  \yShop")
len += format(szMenuBody[len], 511-len"^n\r3. \wItem List")
len += format(szMenuBody[len], 511-len"^n\r4. \yHelp")
len += format(szMenuBody[len], 511-len"^n^n^n\r8. \wSave Experience")
len += format(szMenuBody[len], 511-len"^n\r0. \yCancel")
new 
keys = (1<<0|1<<1|1<<2|1<<3|1<<7|1<<8|1<<9)
show_menu(idkeysszMenuBody, -1"[PFM] Menu"

Can you help me? :)

fysiks 06-18-2010 00:34

Re: Menu only for tr
 
Check if they user's team is terrorist. If it is then build the menu. If not then don't do anything.


All times are GMT -4. The time now is 14:55.

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