Raised This Month: $ Target: $400
 0% 

Choose team death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-16-2011 , 15:08   Re: Choose team death
Reply With Quote #2

I think this will work, but untested:

PHP Code:
#include <amxmodx>
#include <cstrike>


new CsTeams:g_p_team[33//stores current team of every connected player

public player_change_team(idCsTeams:new_team){
    if (
new_team == g_p_team[id])
         return
         
client_print (id,print_chat,"You are not allowed to change teams!"//tell them they are not allowed to switch
         
user_kill (id//slay them for switching

__________________

Last edited by joshknifer; 12-16-2011 at 15:12.
joshknifer is offline
Send a message via Skype™ to joshknifer
 



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 20:53.


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