Aimbot Detector/OnPlayerTakeDamage
#1

Hi,

I'm currently creating an RP server, an idea came on my mind,

If admin is spectating Player A,
Player A is fighting Player B, Player A shoots at Player B > I want an marker/pickup to create where the Player has fired that bullet.

If anyone can script this with function OnPlayerTakeDamage, I'd really appriciate it +rep from me.
Thanks.
Reply
#2

Please?
Reply
#3

Better If You This FS Dude

https://sampforum.blast.hk/showthread.php?tid=534341
Reply
#4

you mean this?

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
   if(spectateonofadmin...)
   {
      CreatePickup(1318, 0, fX, fY, fZ, 0);
   }
   return 1;
}
Reply
#5

Quote:
Originally Posted by ReD_HunTeR
Посмотреть сообщение
you mean this?

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
   if(spectateonofadmin...)
   {
      CreatePickup(1318, 0, fX, fY, fZ, 0);
   }
   return 1;
}
Thanks,
Might try this.
Any other sulotions?
Reply
#6

bump
Reply
#7

PHP код:
OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
beingspectated[playerid])   // change this according to your script
    
{
         
CreateDynamicPickup(13180fXfYfZGetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), Spectator[playerid]);
    }
    return 
1;
}
//Change the variable 'Spectator' too according to your script. 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)