Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ==================================================================================================================
- SISTEMA DE FEZES V0.2
- FILTERSCRIPT CRIADO POR SHICKCARD
- CONTATO:
- MSN: [email protected]
- SKYPE: shickcard
- ==================================================================================================================
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- */
- #include <a_samp>
- #define CORBEMVINDO 0x8080FFAA
- #define CORMORREU 0xFF0000AA
- #define CORCMDS 0x80FF00AA
- #define CORCREDITOS 0xFF00FFAA
- #define CORAVISO 0x408080AA
- #define SHICK 2
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [FS] Sistema de Defecação v0.1a");
- print(" Criador: Shickcard ");
- print("--------------------------------------\n");
- CreateObject(2926,1809.86218262,-1688.09643555,12.54815292,0.00000000,0.00000000,0.00000000);
- CreateObject(2926,1504.77978516,-1755.12133789,12.54687500,0.00000000,0.00000000,0.00000000);
- CreateObject(2926,1374.09301758,-1602.79504395,12.54687500,0.00000000,0.00000000,72.00000000);
- CreateObject(2926,1366.76293945,-1273.82214355,12.54687500,0.00000000,0.00000000,0.00000000);
- CreateObject(2926,1780.19836426,-1159.14099121,22.82812500,0.00000000,0.00000000,268.00000000);
- CreateObject(2926,2174.12133789,-1017.21093750,61.94620132,0.00000000,0.00000000,0.00000000);
- CreateObject(2926,2151.23779297,-1015.41033936,68.03906250,0.00000000,0.00000000,306.00000000);
- CreateObject(2926,2171.61230469,-1617.63232422,13.26051617,0.00000000,0.00000000,68.00000000);
- CreateObject(2926,2477.63037109,-1690.64123535,12.51051617,0.00000000,0.00000000,0.00000000);
- NivelFezes[playerid] = 0;
- SetTimer("TimerCagar", 300000, true);
- return 1;
- }
- #else
- new NivelFezes[MAX_PLAYERS];
- forward TimerCagar(playerid);
- forward Cagando(playerid);
- main()
- {
- print("\n----------------------------------");
- print(" [FS] Sistema de Defecação v0.1a");
- print(" Criador: Shickcard ");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, CORBEMVINDO, "[AVISO] Este servidor usa o Sistema de Defecação do Shickcard");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid, CORBEMVINDO, "[AVISO] Este servidor usa o Sistema de Defecação do Shickcard");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(NivelFezes[playerid] >= 7)
- {
- SetPlayerHealth(playerid,0);
- SendClientMessage(playerid, CORMORREU, "[LAUDO MÉDICO] Você morreu de infecção intestinal por acumular fezes.");
- NivelFezes[playerid] = 0;
- return 1;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/creditos", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, CORCREDITOS, "[CRÉDITOS] Todos os créditos ao criador do filterscript: Shickcard");
- return 1;
- }
- if(strcmp("/comandosfs", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, CORCMDS, "[COMANDOS] /cagar /nivelfezes /creditos /gpsfezes /comandosfs");
- return 1;
- }
- if(strcmp("/cagar", cmdtext, true) == 0)
- {
- if(NivelFezes[playerid] == 0)
- {
- SendClientMessage(playerid, CORCMDS, "[ERRO] Você já cagou!");
- return 1;
- }
- if(!PlayerToPoint(2.0,playerid,1809.86218262,-1688.09643555,12.54815292) || !PlayerToPoint(2.0,playerid,1504.77978516,-1755.12133789,12.54687500)
- || !PlayerToPoint(2.0,playerid,1374.09301758,-1602.79504395,12.54687500) || !PlayerToPoint(2.0,playerid,1366.76293945,-1273.82214355,12.54687500)
- || !PlayerToPoint(2.0,playerid,1780.19836426,-1159.14099121,22.82812500) || !PlayerToPoint(2.0,playerid,2174.12133789,-1017.21093750,61.94620132)
- || !PlayerToPoint(2.0,playerid,2151.23779297,-1015.41033936,68.03906250) || !PlayerToPoint(2.0,playerid,2171.61230469,-1617.63232422,13.26051617)
- || !PlayerToPoint(2.0,playerid,2477.63037109,-1690.64123535,12.51051617))
- {
- SendClientMessage(playerid, CORCMDS, "[ERRO] Você não está em uma caixa de fezes!");
- return 1;
- }
- SetTimer("Cagando", 5000, 1);
- SendClientMessage(playerid, CORCMDS, "Você tá cagando!");
- ApplyAnimation(playerid,"FOOD","FF_Dam_Fwd",4.1,0,1,1,1,1);
- return 1;
- }
- if(strcmp("/gpsfezes", cmdtext ,true) == 0)
- {
- ShowPlayerDialog(playerid, SHICK, DIALOG_STYLE_LIST, "{FC69FF}.:: {DDE7FF} GPS Fezes {FC69FF}::.", "{C16FFF}Caixa Fezes 1\n{552FFF}Caixa Fezes 2\n{00B3FF}Caixa Fezes 3\n{0A23FF}Caixa Fezes 4\n{8769FF}Caixa Fezes 5\n{C8F5FF}Caixa Fezes 6\n{BFBFFF}Caixa Fezes 7\n{AF03FF}Caixa Fezes 8\n{FF00FF}Caixa Fezes 9", "Selecionar", "Cancelar");
- return 1;
- }
- if(strcmp("/nivelfezes", cmdtext, true) == 0)
- {
- new string[128];
- format(string, sizeof(string), "Nível de Fezes: %d", NivelFezes);
- SendClientMessageToAll(0xD5E8A8AA, string);
- return 1;
- }
- return 0;
- }
- public TimerCagar(playerid)
- {
- new string[128];
- NivelFezes[playerid]+=1;
- format(string, sizeof(string), "[AVISO] Seu nível de fezes acabou de aumentar e agora é de: %d", NivelFezes);
- SendClientMessageToAll(0xD5E8A8AA, string);
- if(NivelFezes[playerid] == 2)
- {
- SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 2/6)");
- }
- if(NivelFezes[playerid] == 3)
- {
- SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 3/6)");
- }
- if(NivelFezes[playerid] == 4)
- {
- SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 4/6)");
- }
- if(NivelFezes[playerid] == 5)
- {
- SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 5/6)");
- }
- else if(NivelFezes[playerid] == 6)
- {
- SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 6/6)");
- return 1;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == SHICK)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid, 1809.86218262,-1688.09643555,12.54815292,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 1 - Marcada!");
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid, 1504.77978516,-1755.12133789,12.54687500,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 2 - Marcada!");
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid, 1374.09301758,-1602.79504395,12.54687500,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 3 - Marcada!");
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid, 1366.76293945,-1273.82214355,12.54687500,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 4 - Marcada!");
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid, 1780.19836426,-1159.14099121,22.82812500,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 5 - Marcada!");
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid, 2174.12133789,-1017.21093750,61.94620132,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 6 - Marcada!");
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid, 2151.23779297,-1015.41033936,68.03906250,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 7 - Marcada!");
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid, 2171.61230469,-1617.63232422,13.26051617,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 8 - Marcada!");
- }
- if(listitem == 8)
- {
- SetPlayerCheckpoint(playerid, 2477.63037109,-1690.64123535,12.51051617,8.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 9 - Marcada!");
- }
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- public Cagando(playerid)
- {
- NivelFezes[playerid] = 0;
- SendClientMessage(playerid, CORCMDS, "Você acaba de cagar!");
- ClearAnimations(playerid);
- return 1;
- }
- stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- return 0;
- }
- /*
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ==================================================================================================================
- SISTEMA DE FEZES V0.2
- FILTERSCRIPT CRIADO POR SHICKCARD
- CONTATO:
- MSN: [email protected]
- SKYPE: shickcard
- ==================================================================================================================
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- */
Advertisement
Add Comment
Please, Sign In to add comment