Raised This Month: $ Target: $400
 0% 

Choose team death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-16-2011 , 15:32   Re: Choose team death
Reply With Quote #3

Quote:
Originally Posted by joshknifer View Post
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

And how does this function get executed?
__________________
fysiks 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 20:53.


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