SA-MP Forums Archive
[FilterScript] Sistema de Matanзa/KillsSpree [PEDIDO] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Sistema de Matanзa/KillsSpree [PEDIDO] (/showthread.php?tid=334812)



Sistema de Matanзa/KillsSpree [PEDIDO] - 4LiSs0N - 15.04.2012

Galera eu fiz um Sistema de matanзa/KillsSpree SIMPLES a pedido de um amigo meu, e resolvi postar aqui espero que gostem do meu primeiro filterscript.
OBS Dispenso Criticas, comentбrios fъteis.
Creditos: KrauZer ou 4LiSs0N

↓Imagem↓

↕Code↕

pawn Код:
/* Fs Feito por KrauZeR/4LiSs0N*/
#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;
}
/*--------------------------------*-------------------------------------------*/



Re: Sistema de Matanзa/KillsSpree [PEDIDO] - histire - 15.04.2012

Eu jб estou a ficar nervoso com vocкs, estгo a roubar minhas ideias, kkkkkkkkkkkkkk.
Уtimo filterscript, parabйns.


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - WLSF - 15.04.2012

Poderia ser melhor, mas jб que dispensa crнticas um beijo do gordф !


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - 4LiSs0N - 15.04.2012

Lol' vlw hsitire.
Vlw Willian_Luigi | O nome dificil


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - Lucas_Alemao - 15.04.2012

dava pra melhorar essa identaзгo nй?


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - @Riichard - 15.04.2012

Fico legal '-'
Serб util para algumas pessoas..


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - 4LiSs0N - 15.04.2012

Obrigado Lucas e Riichard '-'


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - FriendrS - 16.04.2012

Legal Cara Parabens


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - 4LiSs0N - 16.04.2012

Vlw veio.


Re: Sistema de Matanзa/KillsSpree [PEDIDO] - Gustavo_z - 16.04.2012

Уtimo FS, vou usar no meu Servidor e nгo vou retirar os Crйditos.
10/10.