Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=========================[CRIADOR PORCHEFAO_UNKNOWN]==========================
- =============================[RELOGINHO SA:MP]================================
- =========================[CRIADOR PORCHEFAO_UNKNOWN]==========================
- */
- //Lembre-se que é apenas para iniciante que querem aprendeu um pouco XD.
- //Vim postar em nome da SSGAMES
- #include <a_samp>
- // ---------- new ---------- //
- new Text:HoraDoServidorTXT;
- new HoraDoServidor = 12;
- // ---------- new ---------- //
- public OnFilterScriptInit()
- {
- print("\n[FS]Reloginho by:Chefao_Unknown\n");
- return 1;
- }
- public OnGameModeInit()
- {
- SetWorldTime(HoraDoServidor);
- SetTimer("CicloDeTempo", 60000, true);
- HoraDoServidorTXT = TextDrawCreate(498.000000, 13.000000, "12:00");
- TextDrawBackgroundColor(HoraDoServidorTXT, 255);
- TextDrawFont(HoraDoServidorTXT, 1);
- TextDrawLetterSize(HoraDoServidorTXT, 0.440000, 1.100000);
- TextDrawColor(HoraDoServidorTXT, -1);
- TextDrawSetOutline(HoraDoServidorTXT, 1);
- TextDrawSetProportional(HoraDoServidorTXT, 1);
- return 1;
- }
- public OnGameModeExit()
- {
- TextDrawDestroy(HoraDoServidorTXT); //Exclui o textdrawi
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, HoraDoServidorTXT);
- return 1;
- }
- forward CicloDeTempo(playerid);
- public CicloDeTempo(playerid)
- {
- HoraDoServidor++;
- SetWorldTime(HoraDoServidor);
- new string[48];
- format(string, sizeof(string), "%d:00", HoraDoServidor);
- TextDrawSetString(HoraDoServidorTXT,string);
- if(HoraDoServidor == 23)//se servetime variável é a 23 que coloca a variável a 0
- {
- HoraDoServidor = 0;
- }
- return 1;
- }
- /*=========================[CRIADOR PORCHEFAO_UNKNOWN]==========================
- =============================[RELOGINHO SA:MP]================================
- =========================[CRIADOR PORCHEFAO_UNKNOWN]==========================
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement