SHARE
TWEET

Kill Textdraw by TRTDM

a guest Dec 13th, 2014 502 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Credits to Me for making this script, Waheguru (GOD) For his blessings and SA-MP team.HTTP */
  2.  
  3. #include <a_samp>
  4. new Text: KillerTextdraw[MAX_PLAYERS], Text:KillerTextdraw1[MAX_PLAYERS], Text:KillerTextdraw2[MAX_PLAYERS];
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     for(new i; i < MAX_PLAYERS; ++i)
  9.     {
  10.        KillerTextdraw[i] = TextDrawCreate(384.54547119140625 ,211.29263305664062 , "ENEMY KILLED");
  11.        TextDrawFont(KillerTextdraw[i] , 1);
  12.        TextDrawLetterSize(KillerTextdraw[i] , 0.31, 2.072);
  13.        TextDrawColor(KillerTextdraw[i] , 0xff9100FF);
  14.        TextDrawSetOutline(KillerTextdraw[i] , true);
  15.        TextDrawSetProportional(KillerTextdraw[i] , true);
  16.        TextDrawSetShadow(KillerTextdraw[i] , 2);
  17.  
  18.        KillerTextdraw1[i] = TextDrawCreate(460.53973388671875 ,210.2840919494629 , "+1 SCORE");  // Edit this if you have someother reward
  19.        TextDrawFont(KillerTextdraw1[i] , 2);
  20.        TextDrawLetterSize(KillerTextdraw1[i] , 0.31, 2.072);
  21.        TextDrawColor(KillerTextdraw1[i] , 0xffffffFF);
  22.        TextDrawSetOutline(KillerTextdraw1[i] , false);
  23.        TextDrawSetProportional(KillerTextdraw1[i] , false);
  24.        TextDrawSetShadow(KillerTextdraw1[i] , 2);
  25.  
  26.        KillerTextdraw2[i] = TextDrawCreate(385.53973388671875 ,230.19886016845703 , "500 CASH BONUS");  // Edit this incase you have someother reward.
  27.        TextDrawFont(KillerTextdraw2[i] , 2);
  28.        TextDrawLetterSize(KillerTextdraw2[i] , 0.31, 2.17);
  29.        TextDrawColor(KillerTextdraw2[i] , 0xffffffFF);
  30.        TextDrawSetOutline(KillerTextdraw2[i] , false);
  31.        TextDrawSetProportional(KillerTextdraw2[i] , false);
  32.        TextDrawSetShadow(KillerTextdraw2[i] , 2);
  33.     }
  34.         return 1;
  35. }
  36.  
  37. public OnFilterScriptExit()
  38. {
  39.         return 1;
  40. }
  41.  
  42. main()
  43. {
  44.         print("\n----------------------------------");
  45.         print(" Blank Gamemode by your name here");
  46.         print("----------------------------------\n");
  47. }
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  51.         return 1;
  52. }
  53.  
  54. public OnPlayerDisconnect(playerid, reason)
  55. {
  56.         return 1;
  57. }
  58.  
  59. forward RemoveTextDraw(playerid);
  60. public RemoveTextDraw(playerid)
  61. {
  62.    TextDrawHideForPlayer(playerid, KillerTextdraw[playerid]);
  63.    TextDrawHideForPlayer(playerid, KillerTextdraw1[playerid]);
  64.    TextDrawHideForPlayer(playerid, KillerTextdraw2[playerid]);
  65.    return 1;
  66. }
  67.  
  68. public OnPlayerSpawn(playerid)
  69. {
  70.         return 1;
  71. }
  72.  
  73. public OnPlayerDeath(playerid, killerid, reason)
  74. {
  75.  
  76.     TextDrawShowForPlayer(killerid, KillerTextdraw[killerid]);
  77.     TextDrawShowForPlayer(killerid, KillerTextdraw1[killerid]);
  78.     TextDrawShowForPlayer(killerid, KillerTextdraw2[killerid]);
  79.     SetTimerEx("RemoveTextDraw", 3000, false,"i", killerid);
  80.         return 1;
  81. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top