Quick question
#1

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?
Reply
#2

Use
pawn Код:
GetWeaponName(GetPlayerWeapon(playerid))
https://sampwiki.blast.hk/wiki/GetWeaponName
Reply
#3

----
Reply
#4

Use

pawn Код:
GetWeaponName(GetPlayerWeapon(sendername),gunname,sizeof(gunname));
instead of

pawn Код:
GetWeaponName(sName,gunname,sizeof(gunname));
Reply
#5

-- MOD DELETE THREAD --

Problem fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)