Guest User

Matança [Blog do Samp]

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