
Server ip : cs6.csduragi.net / 213.238.173.206 / cs1.sthgaming.org
16v16 Mac Server ip : cs155.csduragi.com / cs2.sthgaming.org
Team Speak3 ip : ts26.csduragi.com
Web Adresi : http://www.sthgaming.org
Moderatör: Moderatörler
Link: | |
Linklerini gizle |
Link: | |
Linklerini gizle |
teşekkürler deneyecegım.redarmygaming yazdı:gamecommencing kodu çalışmamakta. Bunuda not ediyorum. Bu yüzden bir çok eklenti çalışmamakta.
ben bunun yerine sıfırlama eli için cvar ekledim.
amx_cvar sth_weapengel_sifirla 16 (16. elde rounda rest atar ve baştan sayar.)
Link: | |
Linklerini gizle |
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Raund weapon Yasak"
#define VERSION "1.0"
#define AUTHOR "uzman59"
new round;
new bool:silah = false
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV","eNewRound","a","1=0","2=0")
register_event("TextMsg","eRestart","a","2=#Game_will_restart_in","2=#Game_Commencing")
register_concmd("amx_weapon", "komut_yasaklandi")
}
public eNewRound() {
round++
if(round < 20) {
if(round == 4) {
silah = true
}
else{
if(round == 15) {
silah = false
}
else{
if(round == 19){
silah = true
}
}
}
}
}
public eRestart() {
round = 0
silah = false
}
public komut_yasaklandi(id)
{
if(get_user_flags(id) & ADMIN_RCON){
return PLUGIN_CONTINUE;
}
if(!silah){
renkli_yazi(id,"!gSTH !tGaming !n: !g>>> !tiLK !n[ !g3 !n] !tRaund !gWeapon Cekmek !tYasaktir...")
return PLUGIN_HANDLED;
}
if(silah){
return PLUGIN_CONTINUE;
}
return PLUGIN_HANDLED
}
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");
replace_all(msg, 190, "!g", "^x04");
replace_all(msg, 190, "!t", "^x03");
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();
}
}
}
}
Link: | |
Linklerini gizle |