SA-MP Forums Archive
Any other include than OnPlayerShootPlayer - 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: Any other include than OnPlayerShootPlayer (/showthread.php?tid=282547)



Any other include than OnPlayerShootPlayer - Baboon - 11.09.2011

Just like the titles says.
Is there any include which is simular to OnPlayerShootPlayer?
Just to detect who is the shooter.


Re: Any other include than OnPlayerShootPlayer - serman - 11.09.2011

hm maybe no


Re: Any other include than OnPlayerShootPlayer - Laronic - 11.09.2011

Doesnt the include by Wups do that?

Quote:
Originally Posted by wups
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    new msg[128],name1[24],name2[24];
    GetPlayerName(Shooter,name1,24);
    GetPlayerName(Target,name2,24);
    format(msg,sizeof(msg)," * %s Shot %s(Dmg: %f HP and %f Armour)!",name1,name2,HealthLost,ArmourLost);
    SendClientMessageToAll(0xFFFFFFFF,msg);
    return 1;
}
public OnPlayerShootPlayer(Shooter, Target, Float:HealthLost, Float:ArmourLost)


Re: Any other include than OnPlayerShootPlayer - Sasino97 - 11.09.2011

There are 3 or 4 OnPlayerShootPlayer includes, made by different persons


Re: Any other include than OnPlayerShootPlayer - =WoR=G4M3Ov3r - 11.09.2011

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
There are 3 or 4 OnPlayerShootPlayer includes, made by different persons
True, but the one by wups is the best one to use.


Re: Any other include than OnPlayerShootPlayer - Sasino97 - 11.09.2011

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
True, but the one by wups is the best one to use.
Yes, of course, because it's the Original, and the first made.