#include < a_samp >#include < fixchars >new GameMinutes =1;new GameSeconds =00; new GameTimer;new Text:Timer;new RoundTime = 60000;new palyak;forward GameTime( playerid );forward GameModeExitFunc( playerid );public OnGameModeInit(){palyak = 1; UsePlayerPedAnims( ); SetTimer(\"GameModeExitFunc\", RoundTime, 0 ); SetTimer(\"Score\",60000, false ); GameTimer = SetTimer(\"GameTime\", 1000, 1 ); SetWorldTime( 6 ); DisableInteriorEnterExits( ); AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); Timer= TextDrawCreate(315.000000, 400.000000,\"1:00\"); TextDrawAlignment(Timer,2); TextDrawBackgroundColor(Timer,0xFFFFFFAA); TextDrawFont(Timer,3); TextDrawLetterSize(Timer,0.499999,2.000000); TextDrawColor(Timer,0xffffffff); TextDrawSetOutline(Timer,1); TextDrawSetProportional(Timer,1); TextDrawSetShadow(Timer,1); return 1;}public OnPlayerSpawn( playerid ) {TextDrawShowForPlayer(playerid,Timer);return 1; }public GameTime( ){ if(GameSeconds || GameMinutes) { GameSeconds--; if(GameSeconds <= -1) { GameMinutes--; GameSeconds=59; } new TimeString[256]; format(TimeString,sizeof(TimeString),\"~b~%02d~y~:~r~%02d\",GameMinutes,GameSeconds); TextDrawSetString(Timer,TimeString); } return 1;}public GameModeExitFunc( playerid ) {if( palyak == 1 ){ SetGameModeText(\"Fallout Minigame[1/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Fallout Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 2; } if( palyak == 2 ){ SetGameModeText(\"Hay Minigame[2/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Hay Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer );palyak = 3;}if( palyak == 3 ){ SetGameModeText(\"Derby Minigame[3/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Derby Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer );palyak = 2;}}
#include < a_samp >#include < fixchars >new GameMinutes =1;new GameSeconds =00;new GameTimer;new Text:Timer;new RoundTime = 60000;new palyak;forward GameTime( playerid );forward GameModeExitFunc( playerid );public OnGameModeInit(){palyak = 1; UsePlayerPedAnims( ); SetTimer(\"GameModeExitFunc\", RoundTime, 0 ); SetTimer(\"Score\",60000, false ); GameTimer = SetTimer(\"GameTime\", 1000, 1 ); SetWorldTime( 6 ); DisableInteriorEnterExits( ); AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); Timer= TextDrawCreate(315.000000, 400.000000,\"1:00\"); TextDrawAlignment(Timer,2); TextDrawBackgroundColor(Timer,0xFFFFFFAA); TextDrawFont(Timer,3); TextDrawLetterSize(Timer,0.499999,2.000000); TextDrawColor(Timer,0xffffffff); TextDrawSetOutline(Timer,1); TextDrawSetProportional(Timer,1); TextDrawSetShadow(Timer,1); return 1;}public OnPlayerSpawn( playerid ) {TextDrawShowForPlayer(playerid,Timer);return 1; }public GameTime( ){ if(GameSeconds || GameMinutes) { GameSeconds--; if(GameSeconds <= -1) { GameMinutes--; GameSeconds=59; } new TimeString[256]; format(TimeString,sizeof(TimeString),\"~b~%02d~y~:~r~%02d\",GameMinutes,GameSeconds); TextDrawSetString(Timer,TimeString); } return 1;}public GameModeExitFunc( playerid ) {if( palyak == 0 ){ SetGameModeText(\"Fallout Minigame[1/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Fallout Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 1; } if( palyak == 1 ) { SetGameModeText(\"Hay Minigame[2/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Hay Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 2; } if( palyak == 2 ) { SetGameModeText(\"Derby Minigame[3/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Derby Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 3; }}
#include < a_samp >#include < fixchars >new GameMinutes =1;new GameSeconds =00;new GameTimer;new Text:Timer;new RoundTime = 60000;new palyak;forward GameTime( playerid );forward GameModeExitFunc( playerid );public OnGameModeInit(){ palyak = 0; UsePlayerPedAnims( ); SetTimer(\"GameModeExitFunc\", RoundTime, 0 ); SetTimer(\"Score\",60000, false ); GameTimer = SetTimer(\"GameTime\", 1000, 1 ); SetWorldTime( 6 ); DisableInteriorEnterExits( ); AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); Timer= TextDrawCreate(315.000000, 400.000000,\"1:00\"); TextDrawAlignment(Timer,2); TextDrawBackgroundColor(Timer,0xFFFFFFAA); TextDrawFont(Timer,3); TextDrawLetterSize(Timer,0.499999,2.000000); TextDrawColor(Timer,0xffffffff); TextDrawSetOutline(Timer,1); TextDrawSetProportional(Timer,1); TextDrawSetShadow(Timer,1); return 1;}public OnPlayerSpawn( playerid ) {TextDrawShowForPlayer(playerid,Timer);return 1; }public GameTime( ){ if(GameSeconds || GameMinutes) { GameSeconds--; if(GameSeconds <= -1) { GameMinutes--; GameSeconds=59; } new TimeString[256]; format(TimeString,sizeof(TimeString),\"~b~%02d~y~:~r~%02d\",GameMinutes,GameSeconds); TextDrawSetString(Timer,TimeString); } return 1;}public GameModeExitFunc( playerid ) { if( palyak == 0 ) { SetGameModeText(\"Fallout Minigame[1/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Fallout Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 1; } if( palyak == 1 ) { SetGameModeText(\"Hay Minigame[2/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Hay Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 2; } if( palyak == 2 ) { SetGameModeText(\"Derby Minigame[3/10]\"); GameTextForAll(\"~h~~h~~r~Következõ Pálya Betöltése..~n~~w~Derby Minigame\",5000,3); KillTimer( GameTimer ); SendRconCommand(\"gmx\"); TextDrawHideForPlayer( playerid, Timer ); palyak = 3; }}
GameModeExitFunc( playerid )
SetTimer(\"GameModeExitFunc\", RoundTime, 0 );
KillTimer( GameTimer );SendRconCommand(\"gmx\");TextDrawHideForPlayer( playerid, Timer );