Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- 200 lines.
- | /o| | ,---. ,---. |
- |__/ .| | | ,---.,-.-. `---., .,---.|--- ,---.,-.-.
- | \ || | | ,---|| | | || |`---.| |---'| | |
- ` ```---'`---' `---'`---^` ' ' `---'`---|`---'`---'`---'` ' '
- `---'
- PT_Version
- ================================================================================*/
- #include <a_samp>
- #define WHITE 0xFFFFFFC8
- new
- bool:Canpress[MAX_PLAYERS];
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- new Text:Textdraw50,
- Text:Textdraw51,
- Text:Textdraw52,
- Text:Textdraw53,
- Text:Textdraw54;
- new Dead[MAX_PLAYERS];
- #define FILTERSCRIPT
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- new DeathsQuotes[][] =
- {
- "A morte resolve todos os problemas - nenhum homem, nenhum problema. -- ~b~Joseph Stalin",
- "A morte de um homem e uma tragedia. A morte de milhoes é uma estatistica. -- ~b~Joseph Stalin",
- "Nao ha nenhuma maneira honoravel de matar, nenhuma maneira delicada de destruir. Nao ha nada bom na guerra. Exceto seu termino. -- ~b~Abraham Lincoln",
- "Voce nao deve lutar demasiado frequentemente com um inimigo, ou voce ensinar-lhe-a toda sua estratégia militar. -- ~b~Napoleon Bonaparte ",
- "Se nos nao terminamos a guerra, a guerra terminar-nos-a. -- ~b~H. G. Wells",
- "Quando voce tem que matar um homem nao custa nada ser polido. -- ~b~Winston Churchill",
- "Um heroi e nao mais corajoso do que um homem ordinario, mas e cinco minutos corajosos mais por muito tempo. -- ~b~Ralph Waldo Emerson"
- };
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- public OnFilterScriptInit()
- {
- Textdraw50 = TextDrawCreate(0.000000, 0.000000, "LD_SPAC:white");
- TextDrawLetterSize(Textdraw50, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw50, 640.000000, 59.920001);
- TextDrawAlignment(Textdraw50, 1);
- TextDrawColor(Textdraw50, 255);
- TextDrawSetShadow(Textdraw50, 0);
- TextDrawSetOutline(Textdraw50, 0);
- TextDrawFont(Textdraw50, 4);
- Textdraw51 = TextDrawCreate(641.500000, 61.420001, "usebox");
- TextDrawLetterSize(Textdraw51, 0.000000, 42.741107);
- TextDrawTextSize(Textdraw51, -2.000000, 0.000000);
- TextDrawAlignment(Textdraw51, 1);
- TextDrawColor(Textdraw51, 0);
- TextDrawUseBox(Textdraw51, true);
- TextDrawBoxColor(Textdraw51, 102);
- TextDrawSetShadow(Textdraw51, 0);
- TextDrawSetOutline(Textdraw51, 0);
- TextDrawFont(Textdraw51, 0);
- Textdraw52 = TextDrawCreate(0.000000, 423.920013, "LD_SPAC:white");
- TextDrawLetterSize(Textdraw52, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw52, 640.000000, 19.600006);
- TextDrawAlignment(Textdraw52, 1);
- TextDrawColor(Textdraw52, 255);
- TextDrawSetShadow(Textdraw52, 0);
- TextDrawSetOutline(Textdraw52, 0);
- TextDrawFont(Textdraw52, 4);
- Textdraw53 = TextDrawCreate(246.000000, 11.760004, "KILL - CAM");
- TextDrawLetterSize(Textdraw53, 0.784999, 3.644000);
- TextDrawAlignment(Textdraw53, 1);
- TextDrawColor(Textdraw53, -1378294017);
- TextDrawSetShadow(Textdraw53, 0);
- TextDrawSetOutline(Textdraw53, 1);
- TextDrawBackgroundColor(Textdraw53, 51);
- TextDrawFont(Textdraw53, 3);
- TextDrawSetProportional(Textdraw53, 1);
- Textdraw54 = TextDrawCreate(54.500000, 425.599914, "_"); // Você pode personalizar seu texto lá, se você não quer DeathsQuotes.
- TextDrawLetterSize(Textdraw54, 0.350500, 1.488000);
- TextDrawAlignment(Textdraw54, 1);
- TextDrawColor(Textdraw54, -1378294017);
- TextDrawSetShadow(Textdraw54, 0);
- TextDrawSetOutline(Textdraw54, 1);
- TextDrawBackgroundColor(Textdraw54, 51);
- TextDrawFont(Textdraw54, 1);
- TextDrawSetProportional(Textdraw54, 1);
- return 1;
- }
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- public OnPlayerConnect(playerid)
- {
- Canpress[playerid] = false;
- Dead[playerid] = 0; // Adicione-o igualmente quando ele disconect aos servidores.
- SendClientMessage(playerid,WHITE,"[{6DB6B6}KILL-CAM{FFFFFF}] -Nós usamos um sistema da matança-came feito por Matnix.");
- return 1;
- }
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason);
- Dead[playerid] = 1;
- if(Dead[playerid] == 1)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- Canpress[playerid] = true;
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, killerid);
- TextDrawShowForPlayer(playerid, Textdraw50), TextDrawShowForPlayer(playerid, Textdraw51);
- TextDrawShowForPlayer(playerid, Textdraw52), TextDrawShowForPlayer(playerid, Textdraw53),
- TextDrawShowForPlayer(playerid, Textdraw54);
- SetTimerEx("AutoSpawn", 20000, false, "i", playerid);
- SetTimerEx("RandomQuotes", 5000, false, "i", playerid);
- GameTextForPlayer(playerid, "pressionado ~b~fire key~w~ para saltar", 1000, 5);
- SendClientMessage(playerid, WHITE,"[{6DB6B6}KILL-CAM{FFFFFF}] - Após 20 segundos você será desovado automaticaly e para aprontar-se para ir na guerra.");
- SendClientMessage(playerid, WHITE,"^ Mas, você pode igualmente saltar a matança-came pressionando {F4C60B}FIRE KEY{FFFFF} e você desovará. Tenha o divertimento.");
- return 1;
- }
- else if(IsPlayerInAnyVehicle(killerid))
- {
- PlayerSpectateVehicle(playerid,GetPlayerVehicleID(killerid));
- return 1;
- }
- }
- else
- {
- TogglePlayerSpectating(playerid, 0);
- Canpress[playerid] = false;
- Dead[playerid] = 0;
- return 0;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (Canpress[playerid] == true && PRESSED(KEY_FIRE))
- {
- SendClientMessage(playerid, WHITE, "[{6DB6B6}KILL-CAM{FFFFFF}] - Você pressionou {F4C60B}FIRE KEY{FFFFFF} feche e desovará automaticly ao jogo.");
- GameTextForPlayer(playerid, "~b~fire key~w~ pressionado", 800, 5);
- TextDrawHideForPlayer(playerid, Textdraw50), TextDrawHideForPlayer(playerid, Textdraw51),
- TextDrawHideForPlayer(playerid, Textdraw52), TextDrawHideForPlayer(playerid, Textdraw53),
- TextDrawHideForPlayer(playerid, Textdraw54);
- TogglePlayerSpectating(playerid, 0);
- Canpress[playerid] = false;
- return 1;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- forward RandomQuotes();
- public RandomQuotes()
- {
- TextDrawSetString(Textdraw54, DeathsQuotes[random(sizeof(DeathsQuotes))]);
- return 1;
- }
- forward AutoSpawn(playerid);
- public AutoSpawn(playerid)
- {
- if(Canpress[playerid] != false)
- {
- SendClientMessage(playerid, WHITE, "[{6DB6B6}AUTO-SPAWN{FFFFFF}] - Desde 20 segundos você era spectating este indivíduos, agora ele é o momento de jogar.");
- TextDrawHideForPlayer(playerid, Textdraw50), TextDrawHideForPlayer(playerid, Textdraw51),
- TextDrawHideForPlayer(playerid, Textdraw52), TextDrawHideForPlayer(playerid, Textdraw53),
- TextDrawHideForPlayer(playerid, Textdraw54);
- TogglePlayerSpectating(playerid, 0);
- Canpress[playerid] = false;
- Dead[playerid] = 0;
- }
- else return 0;
- return 1;
- }
- //------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement