Aimbot Detector/OnPlayerTakeDamage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Aimbot Detector/OnPlayerTakeDamage (
/showthread.php?tid=566620)
Aimbot Detector/OnPlayerTakeDamage -
fatlirmorina - 07.03.2015
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.
Re: Aimbot Detector/OnPlayerTakeDamage -
fatlirmorina - 07.03.2015
Please?
Re: Aimbot Detector/OnPlayerTakeDamage -
Finnick - 07.03.2015
Better If You This FS Dude
https://sampforum.blast.hk/showthread.php?tid=534341
Re: Aimbot Detector/OnPlayerTakeDamage -
ReD_HunTeR - 07.03.2015
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;
}
Re: Aimbot Detector/OnPlayerTakeDamage -
fatlirmorina - 07.03.2015
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?
Re: Aimbot Detector/OnPlayerTakeDamage -
fatlirmorina - 12.03.2015
bump
Re: Aimbot Detector/OnPlayerTakeDamage -
ATGOggy - 12.03.2015
PHP код:
OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(beingspectated[playerid]) // change this according to your script
{
CreateDynamicPickup(1318, 0, fX, fY, fZ, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), Spectator[playerid]);
}
return 1;
}
//Change the variable 'Spectator' too according to your script.