Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Wklejka cm33drdirbgj dodana przez Robiin, 01.08.2018 14:50
Typ:



rash
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
map_cors_present(maporigin[MAX_ZONES*6],team[3]) {
 
	new zonefile[256],zonefile2[256]
 
	get_configsdir(zonefile, 255)
 
	if(is_linux_server()){
		format(zonefile2, 255, "%s/antirusher", zonefile)
		if(!(dir_exists(zonefile2))) mkdir (zonefile2)
		format(zonefile2, 255, "%s/antirusher/rush.cor", zonefile)
	}
	else{
		format(zonefile2, 255, "%santirusher", zonefile)
		if(!(dir_exists(zonefile2))) mkdir (zonefile2)
		format(zonefile2, 255, "%santirusherrush.cor", zonefile)
	}
 
	if (file_exists(zonefile2)){	
 
		new readdata[512]
		new currentmap[32]
		get_mapname(currentmap,31)
		new map[32], len 
		new x11[16],x12[16],y11[16],y12[16],z11[16],z12[16]
		new x21[16],x22[16],y21[16],y22[16],z21[16],z22[16]
		new x31[16],x32[16],y31[16],y32[16],z31[16],z32[16]
		new x41[16],x42[16],y41[16],y42[16],z41[16],z42[16]
		new x51[16],x52[16],y51[16],y52[16],z51[16],z52[16]
		new x61[16],x62[16],y61[16],y62[16],z61[16],z62[16]
		new x71[16],x72[16],y71[16],y72[16],z71[16],z72[16]
		new x81[16],x82[16],y81[16],y82[16],z81[16],z82[16]
 
 
		for(new i=0; i < 128 && read_file(zonefile2,i,readdata,511,len); i++) {
			x11="";x12="";y11="";y12="";z11="";z12=""
			x21="";x22="";y21="";y22="";z21="";z22=""
			x31="";x32="";y31="";y32="";z31="";z32=""
			x41="";x42="";y41="";y42="";z41="";z42=""
			x51="";x52="";y51="";y52="";z51="";z52=""
			x61="";x62="";y61="";y62="";z61="";z62=""
			parse(readdata,team,2,map,31,x11,15,x12,15,y11,15,y12,15,z11,15,z12,15,
				x21,15,x22,15,y21,15,y22,15,z21,15,z22,15,
				x31,15,x32,15,y31,15,y32,15,z31,15,z32,15,
				x41,15,x42,15,y41,15,y42,15,z41,15,z42,15,
				x51,15,x52,15,y51,15,y52,15,z51,15,z52,15,
				x61,15,x62,15,y61,15,y62,15,z61,15,z62,15,
				x71,15,x72,15,y71,15,y72,15,z71,15,z72,15,
				x81,15,x82,15,y81,15,y82,15,z81,15,z82,15)
			lines=i
			if(equal(map,currentmap)) {
				maporigin[0] = str_to_num(x11)
				maporigin[1] = str_to_num(x12)
				maporigin[2] = str_to_num(y11)
				maporigin[3] = str_to_num(y12)
				maporigin[4] = str_to_num(z11)
				maporigin[5] = str_to_num(z12)
				maporigin[6] = str_to_num(x21)
				maporigin[7] = str_to_num(x22)
				maporigin[8] = str_to_num(y21)
				maporigin[9] = str_to_num(y22)
				maporigin[10] = str_to_num(z21)
				maporigin[11] = str_to_num(z22)
				maporigin[12] = str_to_num(x31)
				maporigin[13] = str_to_num(x32)
				maporigin[14] = str_to_num(y31)
				maporigin[15] = str_to_num(y32)
				maporigin[16] = str_to_num(z31)
				maporigin[17] = str_to_num(z32)
				maporigin[18] = str_to_num(x41)
				maporigin[19] = str_to_num(x42)
				maporigin[20] = str_to_num(y41)
				maporigin[21] = str_to_num(y42)
				maporigin[22] = str_to_num(z41)
				maporigin[23] = str_to_num(z42)
				maporigin[24] = str_to_num(x51)
				maporigin[25] = str_to_num(x52)
				maporigin[26] = str_to_num(y51)
				maporigin[27] = str_to_num(y52)
				maporigin[28] = str_to_num(z51)
				maporigin[29] = str_to_num(z52)
				maporigin[30] = str_to_num(x61)
				maporigin[31] = str_to_num(x62)
				maporigin[32] = str_to_num(y61)
				maporigin[33] = str_to_num(y62)
				maporigin[34] = str_to_num(z61)
				maporigin[35] = str_to_num(z62)
				maporigin[36] = str_to_num(x71)
				maporigin[37] = str_to_num(x72)
				maporigin[38] = str_to_num(y71)
				maporigin[39] = str_to_num(y72)
				maporigin[40] = str_to_num(z71)
				maporigin[41] = str_to_num(z72)
				maporigin[42] = str_to_num(x81)
				maporigin[43] = str_to_num(x82)
				maporigin[44] = str_to_num(y81)
				maporigin[45] = str_to_num(y82)
				maporigin[46] = str_to_num(z81)
				maporigin[47] = str_to_num(z82)
 
				map_cors_file_line=i
				for(new j=0;j<MAX_ZONES;j++){
					i=j*6
					if(((maporigin[1+i]-maporigin[0+i])>0)&&((maporigin[3+i]-maporigin[2+i])>0)&&((maporigin[5+i]-maporigin[4+i])>0))
					zones++
				}
 
				return 1
			}
			if((len<15)  && (map_cors_file_line>i)) map_cors_file_line=i
		}
		log_amx("%L",LANG_SERVER,"AR_NO_ZONE")
		if(lines+2<map_cors_file_line) map_cors_file_line=lines+2	//zapobiega zapisywaniu na 127 pozycji gdy nie ma wolnych lini na koncu :)
		return 0
	}
	else log_amx("%L",LANG_SERVER,"AR_NO_FILE")
	g_team="XX"
	map_cors_file_line=0			//nie ma pluku rush,cor wiec niech zapisze w pierwszej lini
	return 0
}

Dodanych wklejek: 4031
Powered By (Pav32) Pastebin © 2011