Advertisement
Guest User

Sistema de Matança/KillsSpree [PEDIDO]

a guest
Apr 22nd, 2012
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.91 KB | None | 0 0
  1. /* Fs Feito por KrauZeR/4LiSs0N
  2.    VISITE NOSSO SITE: http://www.sampknd.com/
  3.    SAMP KND O MELHOR BLOG DE SAMP DO BRASIL
  4. */
  5. #include <a_samp>
  6. /*--------------------------------*-------------------------------------------*/
  7. new     KillsSpree[MAX_PLAYERS],
  8.         Text:InfoSpree[MAX_PLAYERS],
  9.         Text:BoxSpree,
  10.         string[70]
  11. ;
  12. /*--------------------------------*-------------------------------------------*/
  13. public OnPlayerConnect(playerid)
  14. {
  15.     KillsSpree[playerid] = 0;
  16.     return 1;
  17. }
  18. /*--------------------------------*-------------------------------------------*/
  19. public OnPlayerDisconnect(playerid)
  20. {
  21.     KillsSpree[playerid] = 0;
  22.     return 1;
  23. }
  24. /*--------------------------------*-------------------------------------------*/
  25. public OnPlayerDeath(playerid, killerid, reason)
  26. {
  27.     new Player_Name[MAX_PLAYER_NAME];
  28.     KillsSpree[killerid] ++;
  29.     KillsSpree[playerid] = 0;
  30.     if(KillsSpree[killerid] == 5)
  31.     {
  32.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  33.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}5{FF0023} de Spree",Player_Name);
  34.     SendClientMessageToAll(0xFF0023FF,string);
  35.     }
  36.     if(KillsSpree[killerid] == 10)
  37.     {
  38.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  39.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}10{FF0023} de Spree",Player_Name);
  40.     SendClientMessageToAll(0xFF0023FF,string);
  41.     }
  42.     if(KillsSpree[killerid] == 15)
  43.     {
  44.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  45.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}15{FF0023} de Spree",Player_Name);
  46.     SendClientMessageToAll(0xFF0023FF,string);
  47.     }
  48.     if(KillsSpree[killerid] == 20)
  49.     {
  50.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  51.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}20{FF0023} de Spree",Player_Name);
  52.     SendClientMessageToAll(0xFF0023FF,string);
  53.     }
  54.     if(KillsSpree[killerid] == 25)
  55.     {
  56.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  57.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}25{FF0023} de Spree",Player_Name);
  58.     SendClientMessageToAll(0xFF0023FF,string);
  59.     }
  60.     if(KillsSpree[killerid] == 30)
  61.     {
  62.     GetPlayerName(killerid, Player_Name, MAX_PLAYER_NAME);
  63.     format(string,256,"{33CCFF}%s{FF0023}Chegou nos {33CCFF}30{FF0023} de Spree",Player_Name);
  64.     SendClientMessageToAll(0xFF0023FF,string);
  65.     }
  66.     return 1;
  67. }
  68. /*--------------------------------*-------------------------------------------*/
  69. public OnPlayerSpawn(playerid)
  70. {
  71.     TextDrawShowForPlayer(playerid,BoxSpree);
  72.     TextDrawShowForPlayer(playerid,InfoSpree[playerid]);
  73.     return 1;
  74. }
  75. /*--------------------------------*-------------------------------------------*/
  76. public OnFilterScriptInit()
  77. {
  78. for(new i, k = GetMaxPlayers(); i != k; ++i)
  79. {
  80.     InfoSpree[i] = TextDrawCreate(537.000000, 341.000000," ");
  81.     TextDrawFont(InfoSpree[i], 2);
  82.     TextDrawLetterSize(InfoSpree[i], 0.290000, 1.300000);
  83.     TextDrawColor(InfoSpree[i], 0x0DB0DDFF);
  84.     TextDrawSetOutline(InfoSpree[i], 1);
  85.     TextDrawSetProportional(InfoSpree[i], 1);
  86. }
  87.     BoxSpree = TextDrawCreate(634.000000, 340.000000, "-");
  88.     TextDrawBackgroundColor(BoxSpree, 255);
  89.     TextDrawFont(BoxSpree, 1);
  90.     TextDrawLetterSize(BoxSpree, 0.370000, 3.399998);
  91.     TextDrawColor(BoxSpree, 0);
  92.     TextDrawSetOutline(BoxSpree, 0);
  93.     TextDrawSetProportional(BoxSpree, 1);
  94.     TextDrawSetShadow(BoxSpree, 0);
  95.     TextDrawUseBox(BoxSpree, 1);
  96.     TextDrawBoxColor(BoxSpree, 80);
  97.     TextDrawTextSize(BoxSpree, 529.000000, 21.000000);
  98.     return 1;
  99. }
  100. /*--------------------------------*-------------------------------------------*/
  101. public OnPlayerUpdate(playerid)
  102. {
  103.     format(string, sizeof(string),"Seu Status:~n~Spree:~w~ %d",KillsSpree[playerid]);
  104.     TextDrawSetString(InfoSpree[playerid],string);
  105.     return 1;
  106. }
  107. /*--------------------------------*-------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement