Advertisement
Guest User

Untitled

a guest
May 19th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. new PlayerText:Crosshair[MAX_PLAYERS];
  8.  
  9. forward RemoveCrosshair(playerid);
  10. public RemoveCrosshair(playerid)
  11. {
  12. PlayerTextDrawHide(playerid, Crosshair[playerid]);
  13. }
  14.  
  15. public OnPlayerConnect(playerid)
  16. {
  17. Crosshair[playerid] = CreatePlayerTextDraw(playerid, 336.000030, 174.346618, "X");
  18. PlayerTextDrawLetterSize(playerid, Crosshair[playerid], 0.245998, 0.987734);
  19. PlayerTextDrawAlignment(playerid, Crosshair[playerid], 1);
  20. PlayerTextDrawColor(playerid, Crosshair[playerid], -1);
  21. PlayerTextDrawSetShadow(playerid, Crosshair[playerid], 0);
  22. PlayerTextDrawSetOutline(playerid, Crosshair[playerid], 0);
  23. PlayerTextDrawBackgroundColor(playerid, Crosshair[playerid], 51);
  24. PlayerTextDrawFont(playerid, Crosshair[playerid], 2);
  25. PlayerTextDrawSetProportional(playerid, Crosshair[playerid], 1);
  26. return 1;
  27. }
  28.  
  29. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
  30. {
  31. PlayerTextDrawShow(playerid, Crosshair[playerid]);
  32. SetTimer("RemoveCrosshair", 350, false);
  33. return 1;
  34. }
  35.  
  36. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement