Raised This Month: $ Target: $400
 0% 

[req] No team change!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Skyliner
Member
Join Date: Sep 2011
Location: Fagaras
Old 05-04-2016 , 14:55   Re: [req] No team change!
Reply With Quote #3

Quote:
Originally Posted by ComedyShotsGamer View Post
https://forums.alliedmods.net/showthread.php?t=69819

and in your server.cfg write

tjm_block_change 1
Nope, this one it's not ok.
Got autojoin ...

Code:
#include <amxmodx>
 
#define PLUGIN "Team winner"
#define VERSION "1.0"
#define AUTHOR "EFFx"
 
new iScore[2] // 0 T, 1 CT
new GoldValue
 
public plugin_init() 
{
 register_plugin(PLUGIN, VERSION, AUTHOR)
 
 GoldValue = register_cvar("team_winner_gold","25")
 
 register_event("TeamScore", "EventTeamScore", "a")
}
public EventTeamScore()
{
 new iTeam[32];
 read_data(1,iTeam,31);
 
 if (equal(iTeam,"CT"))
 {
  iScore[ 1 ] = read_data(2);
 }
 else if (equal(iTeam,"TERRORIST"))
 {
  iScore[ 0 ] = read_data(2);
 }
 
 if(iScore[0] == 15)
 {
  server_cmd("amx_givegold @T %d",get_pcvar_num(GoldValue))
 }
 if(iScore[1] == 15)
 {
  server_cmd("amx_givegold @CT %d",get_pcvar_num(GoldValue))
 }
}
This is the plugin.
__________________

Skyliner is offline
Send a message via Yahoo to Skyliner Send a message via Skype™ to Skyliner
 



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 09:38.


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