Raised This Month: $ Target: $400
 0% 

Choose team death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
unethost.com
Member
Join Date: Jun 2011
Location: Taiwan
Old 12-16-2011 , 13:55   Choose team death
Reply With Quote #1

When players choose teams,He will be put to death.
Can make this plugin?
__________________
Long term cooperation CS:GO Plugin production staff.
Please PM me.
unethost.com is offline
Send a message via MSN to unethost.com Send a message via Yahoo to unethost.com
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
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
unethost.com
Member
Join Date: Jun 2011
Location: Taiwan
Old 12-16-2011 , 21:32   Re: Choose team death
Reply With Quote #4

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


PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Warning
Loose indentation on line 10
Header size
:            180 bytes
Code size
:              184 bytes
Data size
:              280 bytes
Stack
/heap size:      16384 bytesestimated maxusage=41 cells (164 bytes)
Total requirements:   17028 bytes

1 Warning
.
Done
What is the problem?
He would still have .amxx,But it is without any effect.
__________________
Long term cooperation CS:GO Plugin production staff.
Please PM me.

Last edited by unethost.com; 12-16-2011 at 21:46.
unethost.com is offline
Send a message via MSN to unethost.com Send a message via Yahoo to unethost.com
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-16-2011 , 16:01   Re: Choose team death
Reply With Quote #5

Hrm, well i was trying to look through code pieces that call a team change event, and found a couple of different pieces and tried to combine them to do what was requested, I am not sure, in looking at it, that it will work. :/
__________________

Last edited by joshknifer; 12-16-2011 at 16:15.
joshknifer is offline
Send a message via Skype™ to joshknifer
unethost.com
Member
Join Date: Jun 2011
Location: Taiwan
Old 12-16-2011 , 22:47   Re: Choose team death
Reply With Quote #6

When players press the "M"(chooseteam),System is mandatory to death.
He will not be any replacement of the team menu or message.
__________________
Long term cooperation CS:GO Plugin production staff.
Please PM me.
unethost.com is offline
Send a message via MSN to unethost.com Send a message via Yahoo to unethost.com
Reply



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