Raised This Month: $ Target: $400
 0% 

Checking which team you picked


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-09-2011 , 06:11   Re: Checking which team you picked
Reply With Quote #6

Quote:
Originally Posted by Pattinho View Post
Try this

PHP Code:
....
register_menucmd(register_menuid("Team_Select",1), (1<<0)|(1<<1)|(1<<4)|(1<<5), "team_select")
....
...
public 
team_select(id,keys)
{
 if (
key==1//Terrorist
....
if (
key==2//CT
...
if(
key ==4// Spectator


lets say I want to block players picking the Terror team? like they'd hit button 1 (in order to pick TERRORIST TEAM). Then how do I block it? by returning PLUGIN_HANDLED?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
 



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 14:28.


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