Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <cancela>
- forward CancelaShowAbrir(cancelaid);
- forward CancelaShowFechar(cancelaid);
- main()
- {
- print("\n----------------------------------");
- print(" Show de Cancelas");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 5.0, 5.0, 3.5, 0.0, 0, 0, 0, 0, 0, 0);
- new cancelaid = 0;
- for(new Float:i = 0; i <= 324; i += 36)
- {
- CriarCancela(cancelaid, 0.0, 0.0, 2.75, i);
- cancelaid++;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/show", cmdtext, true))
- {
- SendClientMessage(playerid, 0xCC0000FF, "O Show iniciou.");
- CancelaShowAbrir(0);
- SetTimerEx("CancelaShowAbrir", 200, false, "i", 1);
- SetTimerEx("CancelaShowAbrir", 400, false, "i", 2);
- SetTimerEx("CancelaShowAbrir", 600, false, "i", 3);
- SetTimerEx("CancelaShowAbrir", 800, false, "i", 4);
- SetTimerEx("CancelaShowAbrir", 1000, false, "i", 5);
- SetTimerEx("CancelaShowAbrir", 1200, false, "i", 6);
- SetTimerEx("CancelaShowAbrir", 1400, false, "i", 7);
- SetTimerEx("CancelaShowAbrir", 1600, false, "i", 8);
- SetTimerEx("CancelaShowAbrir", 1800, false, "i", 9);
- }
- if(!strcmp("/reiniciar", cmdtext, true))
- {
- SendClientMessage(playerid, 0xCC0000FF, "Você reiniciou o servidor.");
- GameModeExit();
- return 1;
- }
- return SendClientMessage(playerid, 0x777777FF, " Use: /Show.");
- }
- public CancelaShowAbrir(cancelaid)
- {
- AbrirCancela(cancelaid, false);
- SetTimerEx("CancelaShowFechar", 1100, false, "i", cancelaid);
- return 1;
- }
- public CancelaShowFechar(cancelaid)
- {
- FecharCancela(cancelaid);
- SetTimerEx("CancelaShowAbrir", 1100, false, "i", cancelaid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement