Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- CountDown system by: aleluja & Paradox
- Credits: aleluja & Paradox
- */
- //==============================================================================
- #include <a_samp>
- #include <zcmd>
- //==============================================================================
- #define FILTERSCRIPT
- #define SCM SendClientMessage
- //==============================================================================
- #define bijela 0xFFFFFFFF
- //==============================================================================
- #pragma tabsize 0
- //==============================================================================
- new
- CDTimer,
- CDBroj = -1;
- //==============================================================================
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" CountDown system učitan!");
- print("--------------------------------------\n");
- return 1;
- }
- //==============================================================================
- public OnFilterScriptExit()
- {
- return 1;
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- SCM(playerid, bijela, "Ovaj server koristi CountDown system by: aleluja & Paradox");
- return 1;
- }
- //==============================================================================
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- //==============================================================================
- CMD:count(playerid, params[])
- {
- CDBroj = 3;
- CDTimer = SetTimer("CountDown", 1000, true);
- new string[128];
- new ImeIgraca[MAX_PLAYER_NAME];
- GetPlayerName(playerid, ImeIgraca, sizeof(ImeIgraca));
- format(string, sizeof(string), "{FF00FF}%s {FFFFFF}je pokrenuo odbrojavanje!", ImeIgraca);
- SCM(playerid, bijela, string);
- return 1;
- }
- //==============================================================================
- forward CountDown();
- public CountDown()
- {
- switch(CDBroj)
- {
- case 0:
- {
- GameTextForAll("~n~~n~~n~~n~~b~[~y~ Go Go Go!!! ~b~]", 1000, 3);
- CDBroj = -1;
- KillTimer(CDTimer);
- }
- case 1:
- {
- GameTextForAll("~n~~n~~n~~n~~b~[~y~ 1 ~b~]", 1000, 3);
- CDBroj = 0;
- }
- case 2:
- {
- GameTextForAll("~n~~n~~n~~n~~b~[~y~ 2 ~b~]", 1000, 3);
- CDBroj = 1;
- }
- case 3:
- {
- GameTextForAll("~n~~n~~n~~n~~b~[~y~ 3 ~b~]", 1000, 3);
- CDBroj = 2;
- }
- }
- return 1;
- }
- //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement