[Cerere] Editare TeamSwap

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
K-Lumea
Membru, skill 0
Membru, skill 0
Posts: 17
Joined: 01 Dec 2013, 01:04
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

15 Dec 2013, 10:07

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fakemeta>

#define TEAM_FURIEN	1
#define TEAM_ANTIFURIEN	2

new SwampTime = false
new Team[33]

public plugin_init()
{
	register_plugin("Team Switch", "1.4", "Askhanar*");
	
	register_event("HLTV", "NewRound", "a", "1=0", "2=0")
	register_event("SendAudio",  "SwitchTeam",  "a",  "1=0",  "2=%!MRAD_ctwin");
	
	register_forward(FM_PlayerPreThink, "PreThink");
}
public client_connect(id) Team[id] = 0

public client_disconnect(id) Team[id] = 0

public NewRound() SwampTime = false;

public SwitchTeam() 
{
	SwampTime = true;
	new iPlayers[32],  iNum;
	get_players(iPlayers,  iNum,  "ch" );
	for(new id = 0;  id  <  iNum;  id++)  {
		if(is_user_connected(iPlayers[id])) {
			if(get_user_team(iPlayers[id]) == TEAM_FURIEN)
				Team[iPlayers[id]] = TEAM_ANTIFURIEN
			else if(get_user_team(iPlayers[id]) == TEAM_ANTIFURIEN)
				Team[iPlayers[id]] = TEAM_FURIEN
		}
	}
}
public PreThink(id) {	
	if(is_user_connected(id)) {
		if(SwampTime) {
			if(Team[id] == TEAM_ANTIFURIEN && get_user_team(id) != TEAM_ANTIFURIEN) {
				cs_set_user_team(id, TEAM_ANTIFURIEN)
				Team[id] = 0
			}
			else if(Team[id] == TEAM_FURIEN && get_user_team(id) != TEAM_FURIEN) {
				cs_set_user_team(id, TEAM_FURIEN)
				Team[id] = 0
			}
		}
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Poate cineva sa imi editeze acest teamswap astfel ca in fiecare runda , indiferent de ce cine castiga , ambele echipe sa se inverseze ?
Rapidserver
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

15 Dec 2013, 11:06

K-Lumea wrote:
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fakemeta>

#define TEAM_FURIEN	1
#define TEAM_ANTIFURIEN	2

new SwampTime = false
new Team[33]

public plugin_init()
{
	register_plugin("Team Switch", "1.4", "Askhanar*");
	
	register_event("HLTV", "NewRound", "a", "1=0", "2=0")
	register_event("SendAudio",  "SwitchTeam",  "a",  "1=0",  "2=%!MRAD_ctwin");
	
	register_forward(FM_PlayerPreThink, "PreThink");
}
public client_connect(id) Team[id] = 0

public client_disconnect(id) Team[id] = 0

public NewRound() SwampTime = false;

public SwitchTeam() 
{
	SwampTime = true;
	new iPlayers[32],  iNum;
	get_players(iPlayers,  iNum,  "ch" );
	for(new id = 0;  id  <  iNum;  id++)  {
		if(is_user_connected(iPlayers[id])) {
			if(get_user_team(iPlayers[id]) == TEAM_FURIEN)
				Team[iPlayers[id]] = TEAM_ANTIFURIEN
			else if(get_user_team(iPlayers[id]) == TEAM_ANTIFURIEN)
				Team[iPlayers[id]] = TEAM_FURIEN
		}
	}
}
public PreThink(id) {	
	if(is_user_connected(id)) {
		if(SwampTime) {
			if(Team[id] == TEAM_ANTIFURIEN && get_user_team(id) != TEAM_ANTIFURIEN) {
				cs_set_user_team(id, TEAM_ANTIFURIEN)
				Team[id] = 0
			}
			else if(Team[id] == TEAM_FURIEN && get_user_team(id) != TEAM_FURIEN) {
				cs_set_user_team(id, TEAM_FURIEN)
				Team[id] = 0
			}
		}
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Poate cineva sa imi editeze acest teamswap astfel ca in fiecare runda , indiferent de ce cine castiga , ambele echipe sa se inverseze ?
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fakemeta>

#define TEAM_FURIEN	1
#define TEAM_ANTIFURIEN	2

new SwampTime = false
new Team[33]

public plugin_init()
{
	register_plugin("Team Switch", "1.4", "Askhanar*");
	
	register_event("HLTV", "NewRound", "a", "1=0", "2=0")
	register_event("SendAudio",  "SwitchTeam",  "a",  "1=0",  "2=%!MRAD_ctwin");
	
	register_forward(FM_PlayerPreThink, "PreThink");
}
public client_connect(id) Team[id] = 0

public client_disconnect(id) Team[id] = 0

public NewRound() SwampTime = true;

public SwitchTeam() 
{
	SwampTime = true;
	new iPlayers[32],  iNum;
	get_players(iPlayers,  iNum,  "ch" );
	for(new id = 0;  id  <  iNum;  id++)  {
		if(is_user_connected(iPlayers[id])) {
			if(get_user_team(iPlayers[id]) == TEAM_FURIEN)
				Team[iPlayers[id]] = TEAM_ANTIFURIEN
			else if(get_user_team(iPlayers[id]) == TEAM_ANTIFURIEN)
				Team[iPlayers[id]] = TEAM_FURIEN
		}
	}
}
public PreThink(id) {	
	if(is_user_connected(id)) {
		if(SwampTime) {
			if(Team[id] == TEAM_ANTIFURIEN && get_user_team(id) != TEAM_ANTIFURIEN) {
				cs_set_user_team(id, TEAM_ANTIFURIEN)
				Team[id] = 0
			}
			else if(Team[id] == TEAM_FURIEN && get_user_team(id) != TEAM_FURIEN) {
				cs_set_user_team(id, TEAM_FURIEN)
				Team[id] = 0
			}
		}
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 136 times

15 Dec 2013, 13:22

Nu merge bine...face aceeasi treaba ca inainte
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3324
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 41 times
Been thanked: 97 times

17 Dec 2013, 18:15

Mutat in sectiunea corespunzatoare!

1.5. Daca doriti MODIFICAREA unui plugin, postati la ACEASTA sectiune.
RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests