Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- foreach(Player, i)
- {
- if(AdminImmunity{ i } && PLAYER_STATE_SPECTATING && i != playerid) //Replace these with your admin stuff..
- {
- if(IsPlayerInRangeOfPoint(i, 40, X, Y, Z))
- {
- HitMarker[i] = CreatePlayerObject(i, 18647, fX, fY, fZ, 0, 0, 0); //18724 is a "fire" thing
- SetTimerEx("RemoveHitMarker", 4500, false, "ii", i, HitMarker);
- }
- }
- }
- /* For tests vvvvvv
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i, 40, X, Y, Z))
- {
- HitMarker[i] = CreatePlayerObject(i, 18724, fX, fY, fZ-1.5, 0, 0, 0);
- SetTimerEx("RemoveHitMarker", 4500, false, "ii", i, HitMarker);
- }
- }*/
- return 1;
- }
- forward RemoveHitMarker(playerid, objectid);
- public RemoveHitMarker(playerid, objectid)
- {
- DestroyPlayerObject(playerid, objectid);
- return 1;
- }
- //made by kyance ok?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement