Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Todo Credito a iRafaelMendes o Delicia Da ScriptSamp 2 Bj's e Um Abraço....
- + Amor - Recalque !!!!
- */
- // Nas Suas News
- new TimeSS = 180, TimeSS1 = 120, TimeSS2 = 60, TimeSS3 = 3, strrafita[10];
- // Nos Seus Comandos
- if(strcmp(cmd, "/180", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 3) // Level 3 Acima Pode Usar o CMD Quiser Mude, Troque o 3 Por Outro
- {
- SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 180 Segundos");
- ContagemSS();
- return true;
- }
- }
- if(strcmp(cmd, "/120", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 120 Segundos");
- ContagemSS1();
- return true;
- }
- }
- if(strcmp(cmd, "/60", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 60 Segundos");
- ContagemSS2();
- return true;
- }
- }
- if(strcmp(cmd, "/stopcontagem", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- SendClientMessageToAll(-1,"Os Admins Pararam a Contagem, Aguarde 3 Segundos");
- ContagemSS3();
- return true;
- }
- }
- // No Final Do GameMode
- forward ContagemSS();
- public ContagemSS()
- {
- if(TimeSS == 0)
- {
- format(strrafita, sizeof(strrafita),"%d", TimeSS);
- GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
- TimeSS = 180;
- return false;
- }
- format(strrafita, sizeof(strrafita),"%d", TimeSS);
- GameTextForAll(strrafita,1000,3);
- SetTimer("ContagemSS", 1000, false);
- return TimeSS--;
- }
- forward ContagemSS1();
- public ContagemSS1()
- {
- if(TimeSS1 == 0)
- {
- format(strrafita, sizeof(strrafita),"%d", TimeSS1);
- GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
- TimeSS1 = 120;
- return false;
- }
- format(strrafita, sizeof(strrafita),"%d", TimeSS1);
- GameTextForAll(strrafita,1000,3);
- SetTimer("ContagemSS1", 1000, false);
- return TimeSS1--;
- }
- forward ContagemSS2();
- public ContagemSS2()
- {
- if(TimeSS2 == 0)
- {
- format(strrafita, sizeof(strrafita),"%d", TimeSS2);
- GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
- TimeSS2 = 60;
- return false;
- }
- format(strrafita, sizeof(strrafita),"%d", TimeSS2);
- GameTextForAll(strrafita,1000,3);
- SetTimer("ContagemSS2", 1000, false);
- return TimeSS2--;
- }
- forward ContagemSS3();
- public ContagemSS3()
- {
- if(TimeSS3 == 0)
- {
- format(strrafita, sizeof(strrafita),"%d", TimeSS3);
- GameTextForAll("Parou", 1000, 3);
- TimeSS = 0;
- TimeSS1 = 0;
- TimeSS2 = 0;
- TimeSS3 = 0;
- return false;
- }
- format(strrafita, sizeof(strrafita),"%d", TimeSS3);
- GameTextForAll(strrafita,1000,3);
- SetTimer("ContagemSS3", 1000, false);
- return TimeSS3--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement