SA-MP Forums Archive
2 Easy and simple questions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Easy and simple questions (/showthread.php?tid=155762)



2 Easy and simple questions - ViruZZzZ_ChiLLL - 19.06.2010

First Question :
How can I make the every players command
to be shown to the online admins. I use ZCMD.
I don't know how to do it in ZCMD

Second Question :
How can I know if a Certain Player with a Certain
Skin attacks any player with a Certain Skin.

Thanks,
ViruZZzZ_ChiLLL

EDIT :
Examples :
Quote:

ViruZZzZ_ChiLLL (Playerid : 2) has used the command (/cmds)

and
Quote:

ViruZZzZ_ChiLLL has been attacked by SomeRandomGuy and got infected by herpes!




Re: 2 Easy and simple questions - DJDhan - 19.06.2010

Well, I don't see a way to actually check which player shot at which player ( maybe seif's "body part hit" detection script will help).
Also, you can check it under OnPlayerDeath if you want to.


Re: 2 Easy and simple questions - NewTorran - 19.06.2010

For your first question:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
Do the same as you would with OnPlayerCommandText but with that callback. Should work


Re: 2 Easy and simple questions - ViruZZzZ_ChiLLL - 20.06.2010

Oh, okay thanks guys. But I'm still kinda not
clarified with my 2nd question. ANYONE?