Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Fs Feito por KrauZeR/4LiSs0N
- VISITE NOSSO SITE: http://www.sampknd.com/
- SAMP KND O MELHOR BLOG DE SAMP DO BRASIL
- */
- #include <a_samp>
- /*--------------------------------*-------------------------------------------*/
- new KillsSpree[MAX_PLAYERS],
- Text:InfoSpree[MAX_PLAYERS],
- Text:BoxSpree,
- string[70]
- ;
- /*--------------------------------*-------------------------------------------*/
- public OnPlayerConnect(playerid)
- {
- KillsSpree[playerid] = 0;
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
- public OnPlayerDisconnect(playerid)
- {
- KillsSpree[playerid] = 0;
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new Player_Name[MAX_PLAYER_NAME];
- KillsSpree[killerid] ++;
- KillsSpree[playerid] = 0;
- if(KillsSpree[killerid] == 5)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}5{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- if(KillsSpree[killerid] == 10)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}10{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- if(KillsSpree[killerid] == 15)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}15{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- if(KillsSpree[killerid] == 20)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}20{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- if(KillsSpree[killerid] == 25)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}25{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- if(KillsSpree[killerid] == 30)
- {
- GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
- format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}30{FF0023} de Spree",Player_Name);
- SendClientMessageToAll(0xFF0023FF,string);
- }
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid,BoxSpree);
- TextDrawShowForPlayer(playerid,InfoSpree[playerid]);
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
- public OnFilterScriptInit()
- {
- for(new i, k = GetMaxPlayers(); i != k; ++i)
- {
- InfoSpree[i] = TextDrawCreate(537.000000, 341.000000," ");
- TextDrawFont(InfoSpree[i], 2);
- TextDrawLetterSize(InfoSpree[i], 0.290000, 1.300000);
- TextDrawColor(InfoSpree[i], 0x0DB0DDFF);
- TextDrawSetOutline(InfoSpree[i], 1);
- TextDrawSetProportional(InfoSpree[i], 1);
- }
- BoxSpree = TextDrawCreate(634.000000, 340.000000, "-");
- TextDrawBackgroundColor(BoxSpree, 255);
- TextDrawFont(BoxSpree, 1);
- TextDrawLetterSize(BoxSpree, 0.370000, 3.399998);
- TextDrawColor(BoxSpree, 0);
- TextDrawSetOutline(BoxSpree, 0);
- TextDrawSetProportional(BoxSpree, 1);
- TextDrawSetShadow(BoxSpree, 0);
- TextDrawUseBox(BoxSpree, 1);
- TextDrawBoxColor(BoxSpree, 80);
- TextDrawTextSize(BoxSpree, 529.000000, 21.000000);
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
- public OnPlayerUpdate(playerid)
- {
- format(string, sizeof(string),"Seu Status:~n~Spree:~w~ %d",KillsSpree[playerid]);
- TextDrawSetString(InfoSpree[playerid],string);
- return 1;
- }
- /*--------------------------------*-------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement