Plugin editlemesi
Moderatör: Moderatörler
-
- Mesajlar: 2170
- Kayıt: Pzr Eki 01, 2017 11:29 pm
- Konum: Azerbaycan,Haciqabul
- Clan İsmi: Azerbaycan
Plugin editlemesi
@Konu Acan ShooTeR o hesabi banlandigi icin yeni hesabdan giriyor. Bide bos mesaj atmayin lutfen.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 51
- Kayıt: Pzt Şub 26, 2018 6:35 pm
-
- Mesajlar: 2170
- Kayıt: Pzr Eki 01, 2017 11:29 pm
- Konum: Azerbaycan,Haciqabul
- Clan İsmi: Azerbaycan
-
Konu Sahibi - Mesajlar: 51
- Kayıt: Pzt Şub 26, 2018 6:35 pm
-
Konu Sahibi - Mesajlar: 51
- Kayıt: Pzt Şub 26, 2018 6:35 pm
Plugin editlemesi
attığını kullandım zatenShooTeRX yazdı: Çrş Şub 28, 2018 7:11 pmdeneKod: Tümünü seç
#include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "CSPlugin" new ct=0; new tt=0; new win_t =0; new win_ct = 0; new all_raund=0; new str_t[10]; new str_ct[10]; new str_all[10]; new str_win_t[10]; new str_win_ct[10]; new ct_score, terrorist_score; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); set_task(0.1,"show",_,_,_,"b"); set_task(0.1, "player_alive",_, _, _, "b"); register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin"); register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin"); register_event("SendAudio", "draw", "a", "2&%!MRAD_rounddraw"); register_event("TeamScore", "team_score", "a"); register_event("TextMsg", "eRestart", "a", "2=#Game_will_restart_in","2=#Game_Commencing"); } public eRestart() { win_t=0; win_ct=0; all_raund=0; } public t_win() { win_t++; all_raund++; } public ct_win() { win_ct++; all_raund++; } public draw() { all_raund++; } public show() { str_t=" "; str_ct=" "; str_all=" "; str_win_t=" "; str_win_ct=" "; if(ct<10) format(str_ct,2,"0%d",ct); else format(str_ct,2,"%d",ct); if(tt<10) format(str_t,2,"0%d",tt); else format(str_t,2,"%d",tt); if(all_raund < 10) format(str_all,2,"0%d",all_raund); else format(str_all,2,"%d",all_raund); if(win_t<10) format(str_win_t,2,"0%d",win_t); else format(str_win_t,2,"%d",win_t); if(win_ct<10) format(str_win_ct,2,"0%d",win_ct); else format(str_win_ct,2,"%d",win_ct); new str1[20]; format(str1,20,"%s Vitorias %s",str_win_t,str_win_ct); for(new id=0;id<=32;id++) { if(!is_user_connected(id)) { continue; } set_dhudmessage(0, 255, 0, -1.0, 0.0, 0, 6.0, 200.0); show_dhudmessage(id, "CS ARENA",all_raund); set_dhudmessage(255, 0, 0, 0.42, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^nTE %s",str_t); set_dhudmessage(170, 0, 255, -1.0, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n[ %s ]",str_all); set_dhudmessage(0, 255, 255, 0.54, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n%s CT",str_ct); set_dhudmessage(225, 225, 225, -1.0, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n^n%s [TOPLAM OLUM SAYILARI] %s",terrorist_score,ct_score); } } public player_alive() { ct=0; tt=0; for(new id =0;id< 33;id++) { if(!is_user_connected(id)) { continue; } else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) { ct++; } else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) { tt++; } } } public team_score() { new team[32]; read_data(1,team,31); if (equal(team,"CT")) { ct_score = read_data(2); } else if (equal(team,"TERRORIST")) { terrorist_score = read_data(2); } }
Link: | |
Linklerini gizle |
-
- Mesajlar: 2170
- Kayıt: Pzr Eki 01, 2017 11:29 pm
- Konum: Azerbaycan,Haciqabul
- Clan İsmi: Azerbaycan
-
Yasaklı Üye - Mesajlar: 20
- Kayıt: Çrş Şub 28, 2018 5:01 pm
Plugin editlemesi
Not defteri ile duzenlememi yaptınız ? yaptıysanız compile ederken tanımlayamıyacagı harf koymakta bazen ondna dolayı vermekte bu hatayı...Anesthezist yazdı: Çrş Şub 28, 2018 8:12 pmattığını kullandım zatenShooTeRX yazdı: Çrş Şub 28, 2018 7:11 pmdeneKod: Tümünü seç
#include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "CSPlugin" new ct=0; new tt=0; new win_t =0; new win_ct = 0; new all_raund=0; new str_t[10]; new str_ct[10]; new str_all[10]; new str_win_t[10]; new str_win_ct[10]; new ct_score, terrorist_score; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); set_task(0.1,"show",_,_,_,"b"); set_task(0.1, "player_alive",_, _, _, "b"); register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin"); register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin"); register_event("SendAudio", "draw", "a", "2&%!MRAD_rounddraw"); register_event("TeamScore", "team_score", "a"); register_event("TextMsg", "eRestart", "a", "2=#Game_will_restart_in","2=#Game_Commencing"); } public eRestart() { win_t=0; win_ct=0; all_raund=0; } public t_win() { win_t++; all_raund++; } public ct_win() { win_ct++; all_raund++; } public draw() { all_raund++; } public show() { str_t=" "; str_ct=" "; str_all=" "; str_win_t=" "; str_win_ct=" "; if(ct<10) format(str_ct,2,"0%d",ct); else format(str_ct,2,"%d",ct); if(tt<10) format(str_t,2,"0%d",tt); else format(str_t,2,"%d",tt); if(all_raund < 10) format(str_all,2,"0%d",all_raund); else format(str_all,2,"%d",all_raund); if(win_t<10) format(str_win_t,2,"0%d",win_t); else format(str_win_t,2,"%d",win_t); if(win_ct<10) format(str_win_ct,2,"0%d",win_ct); else format(str_win_ct,2,"%d",win_ct); new str1[20]; format(str1,20,"%s Vitorias %s",str_win_t,str_win_ct); for(new id=0;id<=32;id++) { if(!is_user_connected(id)) { continue; } set_dhudmessage(0, 255, 0, -1.0, 0.0, 0, 6.0, 200.0); show_dhudmessage(id, "CS ARENA",all_raund); set_dhudmessage(255, 0, 0, 0.42, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^nTE %s",str_t); set_dhudmessage(170, 0, 255, -1.0, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n[ %s ]",str_all); set_dhudmessage(0, 255, 255, 0.54, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n%s CT",str_ct); set_dhudmessage(225, 225, 225, -1.0, 0.00, 0, 6.0, 12.0); show_dhudmessage(id, "^n^n%s [TOPLAM OLUM SAYILARI] %s",terrorist_score,ct_score); } } public player_alive() { ct=0; tt=0; for(new id =0;id< 33;id++) { if(!is_user_connected(id)) { continue; } else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) { ct++; } else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) { tt++; } } } public team_score() { new team[32]; read_data(1,team,31); if (equal(team,"CT")) { ct_score = read_data(2); } else if (equal(team,"TERRORIST")) { terrorist_score = read_data(2); } }
.smayı atayım öyle yukleyin.
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |