Guest User

Untitled

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