Quick question - 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: Quick question (
/showthread.php?tid=372726)
Quick question -
UnknownGamer - 27.08.2012
Hi guys,
How would I write a command to say "so and so readies his *GUN*"
I've got it to the point of reloading the gun-animation on /ready.
How would I make it do it, so it says So and so readies his M4.
How do I define what gun the player is holding?
Re: Quick question - HuSs3n - 27.08.2012
Use
pawn Код:
GetWeaponName(GetPlayerWeapon(playerid))
https://sampwiki.blast.hk/wiki/GetWeaponName
Re: Quick question -
UnknownGamer - 28.08.2012
----
Re: Quick question - HuSs3n - 28.08.2012
Use
pawn Код:
GetWeaponName(GetPlayerWeapon(sendername),gunname,sizeof(gunname));
instead of
pawn Код:
GetWeaponName(sName,gunname,sizeof(gunname));
Re: Quick question -
UnknownGamer - 28.08.2012
-- MOD DELETE THREAD --
Problem fixed.