Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new PlayerText:Crosshair[MAX_PLAYERS];
- forward RemoveCrosshair(playerid);
- public RemoveCrosshair(playerid)
- {
- PlayerTextDrawHide(playerid, Crosshair[playerid]);
- }
- public OnPlayerConnect(playerid)
- {
- Crosshair[playerid] = CreatePlayerTextDraw(playerid, 336.000030, 174.346618, "X");
- PlayerTextDrawLetterSize(playerid, Crosshair[playerid], 0.245998, 0.987734);
- PlayerTextDrawAlignment(playerid, Crosshair[playerid], 1);
- PlayerTextDrawColor(playerid, Crosshair[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Crosshair[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Crosshair[playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, Crosshair[playerid], 51);
- PlayerTextDrawFont(playerid, Crosshair[playerid], 2);
- PlayerTextDrawSetProportional(playerid, Crosshair[playerid], 1);
- return 1;
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
- {
- PlayerTextDrawShow(playerid, Crosshair[playerid]);
- SetTimer("RemoveCrosshair", 350, false);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement