SA-MP Forums Archive
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: Question. (/showthread.php?tid=650436)



Question. - dani18 - 27.02.2018

Hello everyone, i went here to see if they could tell me how i do this. It turns out that i'm preparing a kind of TextDraw in the style of counter strike, which can define the weapon that had the previous player who killed and the right name. Some time ago i made a code but i deleted it because of errors that persisted and persisted.

how this:



Re: Question. - insus100 - 27.02.2018

With 0.3DL just make a base texture with it, for player to download. Then make a textdraw that fits into it, and just call it when someone dies. Right?


Re: Question. - Sew_Sumi - 27.02.2018

If it's placed there it's gonna be a pretty big turn off...


Re: Question. - cuber - 27.02.2018

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
If it's placed there it's gonna be a pretty big turn off...
It will also be listed here: www.sa-mp.com/stuff/samphistory/




Re: Question. - dani18 - 27.02.2018

Well, basically i do not want anything customized. I just want to see something simple that can explain to me how to identify the weapon with which the player killed and define it in the textdraw. Just something similar to the image.


Re: Question. - PepsiCola23 - 28.02.2018

You can get the killers weapon at
PHP код:
OnPlayerDeath(playeridkilleridreason
with
PHP код:
GetPlayerWeapon(killerid



Re: Question. - NaS - 28.02.2018

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
You can get the killers weapon at
PHP код:
OnPlayerDeath(playeridkilleridreason
with
PHP код:
GetPlayerWeapon(killerid
reason will be the weapon id or whatever the killer used to kill the player (like heli blades).

GetPlayerWeapon could be something else at that time, eg. Parachute when in a Heli, or a Shotgun when the victom died of fire which doesn't kill instantly.

https://sampwiki.blast.hk/wiki/Weapons

Those are all IDs including death reasons like Heli Blade/Explosion.

Do you want the Kill List to behave like in CS? So that it "fills" with new entries at the top and after some time the older ones disappear?


Re: Question. - Sew_Sumi - 28.02.2018

Quote:
Originally Posted by cuber
Посмотреть сообщение
It will also be listed here: www.sa-mp.com/stuff/samphistory/
Shhhh, was talking of that oversized killfeed in the graphics.


Re: Question. - dani18 - 01.03.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
Do you want the Kill List to behave like in CS? So that it "fills" with new entries at the top and after some time the older ones disappear?
Exactly.