07-09-13, 21:47
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Mod Change Vote"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"
new const file[] = "addons/amxmodx/configs/mapchanger_cache.txt";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_cfg() {
new mapname[32];get_mapname(mapname,31);
new prefix[12];get_map_prefix(mapname,prefix)
if(!file_exists(file)) {
new f = fopen(file,"wt")
fclose(f)
}
else {
new szData[32],txtlen;
read_file(file,0,szData,31,txtlen)
if(!equali(szData,prefix)) {
set_task(1.0,"VoteStart")
}
}
write_file(file,prefix,0)
return PLUGIN_CONTINUE
}
public VoteStart() {
new mapname[32];
get_mapname(mapname,31)
server_cmd("amx_map %s",mapname)
}
stock get_map_prefix( mapname[] , prefix[]) {
new x;
while( x < strlen(mapname)-1 ) {
if(mapname[x] == '_') {
return 1;
}
prefix[x] = mapname[x];
x++
}
return 0;
}
dene
CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz: destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/


![[Image: amxxlarge.jpg]](https://www.amxmodx.org/images/amxxlarge.jpg)