Arkadaşlar map değişmesine 2 dk kalınca aşşağıdan şu yazı geçsin:
FF Acilmasina 10 sn kaldi
FF Acilmasina 5 sn kaldi
FF Acilmasina 3 sn kaldi
FF Acilmasina 2 sn kaldi
FF Acilmasina 1 sn kaldi
FF Acildi Herkez Revlensin
saolun şimdid4en
Konu
...
PHP Kod:
/**
* Created by AMXX-Stuido
* User: ITenGriTR
* Date: 30.01.2020
* Time 15.55
*/
#include <amxmodx>
#include <hamsandwich>
new iG_Counter = 10;
public plugin_init(){
register_plugin
("Naber",
"1.0",
"Berk");
new iL_TimeLeft = get_timeleft();
iL_TimeLeft -= 120;
set_task(float(iL_TimeLeft),"pT_CountDown",0);
}
public pT_StarCountDown(){
switch(iG_Counter){
case 10 : {
iG_Counter -= 5;
set_task(5.0,"pT_CountDown",0);
sColoredChat(0,"!n[ !tAutoFF !n] !gFF'in acilmasina son !t10 !gsaniye");
}
default : {
if(iG_Counter > 0){
iG_Counter -= 1;
set_task(1.0,"pT_CountDown",0);
sColoredChat(0,"!n[ !tAutoFF !n] !gFF'in acilmasina son !t%i !gsaniye",iG_Counter);
}
else{
new iL_Players[32],iL_Num,iL_GetID;
get_players(iL_Players,iL_Num);
for(new i; i < iL_Num; i++){
iL_GetID = iL_Players[i];
ExecuteHamB(Ham_CS_RoundRespawn,iL_GetID);
}
set_cvar_num("mp_friendlyfire",1);
sColoredChat(0,"!n[ !tAutoFF !n] !gFF acildi herkese basarilar!n!");
}
}
}
}
#if AMXX_VERSION_NUM < 183
stock sColoredChat(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(Sary)
replace_all(msg, 190, "!g", "^x04"); // Ye?il Renk
replace_all(msg, 190, "!t", "^x03"); // Takym Renk( CT mavi , T kyrmyzy )
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();
}
}
}
}
#else
stock sColoredChat(const id, const input[], any:...){
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");
client_print_color(id, id, msg);
}
#endif
Benzer Konular
Yorum
18.410
Okunma
Yorum
23.138
Okunma