[FilterScript] Sistema de Matanзa/KillsSpree [PEDIDO]
#1

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;
}
/*--------------------------------*-------------------------------------------*/
Reply
#2

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

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

Lol' vlw hsitire.
Vlw Willian_Luigi | O nome dificil
Reply
#5

dava pra melhorar essa identaзгo nй?
Reply
#6

Fico legal '-'
Serб util para algumas pessoas..
Reply
#7

Obrigado Lucas e Riichard '-'
Reply
#8

Legal Cara Parabens
Reply
#9

Vlw veio.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)