Merhabalar ekte verdiğim Oylama Eklentisine Timeleft yani Map Süresi yerine Raunda bağlayabilirmiyiz herşeyi raunda bağlı olacak ve 30 raund olacak şimdiden teşekkürler
Oylama Eklentisi Düzelttirme
)

#include <amxmodx>
#define Round 30
new const bmMaplar[][] = {
"de_dust2",
"de_aztec",
"fy_pool_day"
}
new bmAktifMapID
new bmSuankiMap[18];
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoMapChanger",
"1.0",
"Berk");
get_mapname(bmSuankiMap,charsmax(bmSuankiMap));
new bmMapConst = 0;
for(new i; i < sizeof(bmMaplar); i++){
if(equali(bmSuankiMap,bmMaplar[i][0])){
bmAktifMapID = i;
bmMapConst++;
}
}
if(bmMapConst == 0){
log_amx("bmAutoMapChanger : Suanki map map dosyasinda bulunamadi , lutfen ekleyin.");
return;
}
register_logevent("pRS",2,"1=Round_Start");
register_clcmd("say /haritalar","beHaritalar")
}
public pRS() {
new bmConstID;
if(bmAktifMapID == 0){
bmConstID++;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmConstID = 0;
}
else{
bmConstID = bmAktifMapID+1;
}
bmRoundSayar++
if(bmRoundSayar >= Round){
engine_changelevel(bmMaplar[bmConstID][0]);
}
else if((Round - bmRoundSayar) == 1 ){
set_hudmessage(127, 255, 127, -1.0, 0.68, 0, 6.0, 12.0)
show_hudmessage(0, "Map Degismesine Son [1] Round")
}
}
public beHaritalar(id){
new bmSonrakiMap;
if(bmAktifMapID == 0){
bmSonrakiMap++;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmSonrakiMap = 0;
}
else{
bmSonrakiMap = bmAktifMapID+1;
}
new bmOncekiMap;
if(bmAktifMapID == 0){
bmOncekiMap = sizeof(bmMaplar)-1;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmOncekiMap = 1;
}
else{
bmOncekiMap = bmAktifMapID-1;
}
renkli_yazi(id,"!gBir Onceki Map !t[!n%s!t]!n, !gSuanki Map !t[!n%s!n]!n, !gBir Sonraki Map !t[!n%s!t]",bmMaplar[bmOncekiMap][0],bmSuankiMap,bmMaplar[bmSonrakiMap][0])
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
if (id) players[0] = id; else get_players(players, count, "ch");{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
stock SaniyeCevir(Saniye,Tip){
new saat,gun
new dakika = Saniye/60
new saniye = Saniye%60
while(dakika > 59){
dakika-=60
saat++
}
while(saat > 23){
saat-=24
gun++
}
switch(Tip){
case 1 : {
return saniye;
}
case 2 : {
return dakika;
}
case 3 : {
return saat;
}
case 4 : {
return gun;
}
}
return PLUGIN_HANDLED;
}
(04-06-2020, 13:46)PawNod\ Adlı Kullanıcıdan Alıntı:Gerçekten Çok Teşekkür ederim peki şöyle birşey yapabilirmiyiz Bunu Rekabetci Mode Eklentisiyle Birleştirebilirmiyiz yani demek istediğim 15 Raundda Bir Takımlar Değişecek Ellerindeki Silahlar Alınacak ama restart atılmayacak ve paraları alınmayacak?...PHP Kod:#include <amxmodx>
#define Round 30
new const bmMaplar[][] = {
"de_dust2",
"de_aztec",
"fy_pool_day"
}
new bmAktifMapID
new bmSuankiMap[18];
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoMapChanger",
"1.0",
"Berk");
get_mapname(bmSuankiMap,charsmax(bmSuankiMap));
new bmMapConst = 0;
for(new i; i < sizeof(bmMaplar); i++){
if(equali(bmSuankiMap,bmMaplar[i][0])){
bmAktifMapID = i;
bmMapConst++;
}
}
if(bmMapConst == 0){
log_amx("bmAutoMapChanger : Suanki map map dosyasinda bulunamadi , lutfen ekleyin.");
return;
}
register_logevent("pRS",2,"1=Round_Start");
register_clcmd("say /haritalar","beHaritalar")
}
public pRS() {
new bmConstID;
if(bmAktifMapID == 0){
bmConstID++;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmConstID = 0;
}
else{
bmConstID = bmAktifMapID+1;
}
bmRoundSayar++
if(bmRoundSayar >= Round){
engine_changelevel(bmMaplar[bmConstID][0]);
}
else if((Round - bmRoundSayar) == 1 ){
set_hudmessage(127, 255, 127, -1.0, 0.68, 0, 6.0, 12.0)
show_hudmessage(0, "Map Degismesine Son [1] Round")
}
}
public beHaritalar(id){
new bmSonrakiMap;
if(bmAktifMapID == 0){
bmSonrakiMap++;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmSonrakiMap = 0;
}
else{
bmSonrakiMap = bmAktifMapID+1;
}
new bmOncekiMap;
if(bmAktifMapID == 0){
bmOncekiMap = sizeof(bmMaplar)-1;
}
else if(bmAktifMapID == sizeof(bmMaplar)-1){
bmOncekiMap = 1;
}
else{
bmOncekiMap = bmAktifMapID-1;
}
renkli_yazi(id,"!gBir Onceki Map !t[!n%s!t]!n, !gSuanki Map !t[!n%s!n]!n, !gBir Sonraki Map !t[!n%s!t]",bmMaplar[bmOncekiMap][0],bmSuankiMap,bmMaplar[bmSonrakiMap][0])
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
if (id) players[0] = id; else get_players(players, count, "ch");{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
stock SaniyeCevir(Saniye,Tip){
new saat,gun
new dakika = Saniye/60
new saniye = Saniye%60
while(dakika > 59){
dakika-=60
saat++
}
while(saat > 23){
saat-=24
gun++
}
switch(Tip){
case 1 : {
return saniye;
}
case 2 : {
return dakika;
}
case 3 : {
return saat;
}
case 4 : {
return gun;
}
}
return PLUGIN_HANDLED;
}
#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}
(04-06-2020, 15:39)PawNod\ Adlı Kullanıcıdan Alıntı:gerçekten teşekkürler şimdi rep vereceğim peki bu eklentide 15 elde silahları elden alıyormu?Ayrı bir eklenti olarak buyrun 15 round olduğunda takımları değişirPHP Kod:#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}
#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
give_item(id,"weapon_knife")
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}
(04-06-2020, 16:01)PawNod\ Adlı Kullanıcıdan Alıntı: @dadas_caner az önceki silahları alıyordu fakat bıçağı geri vermiyordu buyrun.çok teşekkür ederim birazdan deneyeceğim.PHP Kod:#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
give_item(id,"weapon_knife")
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}

#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
give_item(pUID,"weapon_knife")
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}
(04-06-2020, 16:56)PawNod\ Adlı Kullanıcıdan Alıntı:diğer eklentide veriyordu hata rekabetcimode onuda rica etsem yaparmısın?PHP Kod:#include <amxmodx>
#include <fun>
#include <cstrike>
#define Round 15
new bmRoundSayar
public plugin_init() {
register_plugin
("AutoTeamChanger",
"1.0",
"Berk");
register_logevent("pRS",2,"1=Round_Start");
}
public pRS() {
bmRoundSayar++
if(bmRoundSayar >= Round){
new pOyuncular[32],pSayi,pUID;
get_players(pOyuncular,pSayi);
for(new i; i < pSayi; i++){
pUID = pOyuncular[i];
strip_user_weapons(pUID)
give_item(pUID,"weapon_knife")
new pTakim = get_user_team(pUID);
switch(pTakim){
case 1 : {
cs_set_user_team(pUID,2);
}
case 2 : {
cs_set_user_team(pUID,1);
}
}
}
bmRoundSayar = 0
}
}
new const bmMaplar[][] = {
"csgo_dust2",
"csgo_mirage",
"csgo_inferno",
"csgo_cache",
"csgo_overpass",
"csgo_train",
"csgo_nuke",
"csgo_aztec",
"csgo_dust3"
}
