Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=========================================
- || NÃO RETIRE OS CREDITOS!!! ||
- || LOWLY BRAZILIAN ||
- || (Y) ||
- ==========================================*/
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #include <streamer>
- // === GATE === //
- new IdEgg;
- public OnFilterScriptInit()
- {
- print("\n---------------------------------------");
- print(" Filter Script Feito por: Lowly Brazilian");
- print("---------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n---------------------------------------");
- print(" Filter Script Feito por: Lowly Brazilian");
- print("---------------------------------------\n");
- }
- enum EasterEgg
- {
- Float:PosEggX,
- Float:PosEggY,
- Float:PosEggZ,
- EggID
- };
- new CreateEgg[MAX_PLAYERS][EasterEgg];
- CMD:egg(playerid, params[])
- {
- new string[85];
- if(sscanf(params, "d", IdEgg)) return SendClientMessage(playerid, -1, "Use: /egg [id Easter Egg]");
- SendClientMessage(playerid, -1, "Você criou um Easter Egg , para Editar sua posição use : /Editaregg !");
- format(string, sizeof(string), "[ATENÇÃO] %s Colocou um Easter Egg em Algum Local do Mapa ! ", pNome(playerid));
- SendClientMessageToAll(-1, string);
- GetPlayerPos(playerid, CreateEgg[playerid][PosEggX], CreateEgg[playerid][PosEggY], CreateEgg[playerid][PosEggZ]);
- CreateEgg[playerid][EggID] = CreateDynamicObject(IdEgg, CreateEgg[playerid][PosEggX], CreateEgg[playerid][PosEggY], CreateEgg[playerid][PosEggZ], 0, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:editaregg(playerid)
- {
- new string[50];
- if(IsPlayerInRangeOfPoint(playerid, 4.0, CreateEgg[playerid][PosEggX], CreateEgg[playerid][PosEggY], CreateEgg[playerid][PosEggZ]))
- {
- format(string, sizeof(string), "Objeto ID : %d Selecionado para Edição.", CreateEgg[playerid][EggID]);
- SendClientMessage(playerid, -1, string);
- EditDynamicObject(playerid, CreateEgg[playerid][EggID]);
- return 1;
- }
- return 1;
- }
- // *** COMANDO EXTRA PARA SER MELHORADO *** //
- CMD:abriregg(playerid)
- {
- new string[124];
- if(IsPlayerInRangeOfPoint(playerid, 4.0, CreateEgg[playerid][PosEggX], CreateEgg[playerid][PosEggY], CreateEgg[playerid][PosEggZ]))
- {
- new MoneyEggs = randomEx(1, 100);
- format(string, sizeof(string), "Você Abriu o Easter Egg , Número %d é Você encontrou R$%d,00 reais.", CreateEgg[playerid][EggID], MoneyEggs);
- SendClientMessage(playerid, -1, string);
- DestroyDynamicObject(CreateEgg[playerid][EggID]);
- return 1;
- }
- return 1;
- }
- randomEx(Min, Max) return (random(((Max - Min) + 1)) + Min);
- stock pNome(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- /*=========================================
- || NÃO RETIRE OS CREDITOS!!! ||
- || LOWLY BRAZILIAN ||
- || (Y) ||
- ==========================================*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement