SA-MP Forums Archive
How i do weapons on back? - 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: How i do weapons on back? (/showthread.php?tid=339207)



How i do weapons on back? - DeLeX - 02.05.2012

Hello, how do i script that if i have like bazooka on my backpack and i am not wearing it its will be on my back
Look like on this image
http://up353.siz.co.il/up1/1nzjoq5e52ug.png

and i want to do the same thing with Satchel Charge id 39


Re: How i do weapons on back? - HDFord - 02.05.2012

try using AttachObjectToPlayer and use GetWeaponID when the player scroll


Re: How i do weapons on back? - DeLeX - 03.05.2012

how i do getweaponid when the player scroll?
and what is the id of mask?


Re: How i do weapons on back? - ToiletDuck - 03.05.2012

Use this Filterscript
http://www.mediafire.com/?32b4x43ru4ggas5
Credits to:Who ever made this FilterScript
I dont know who made this FilterScript enjoy using this Filterscript


Re: How i do weapons on back? - MP2 - 03.05.2012

Players can have 13 weapons, but only equip one, so how are you going to attach 12 weapons on a player's back? I assume that's what you mean.


Re: How i do weapons on back? - $$inSane - 03.05.2012

wait i have a script like that


Re: How i do weapons on back? - DeLeX - 03.05.2012

Quote:
Originally Posted by ToiletDuck
View Post
Use this Filterscript
http://www.mediafire.com/?32b4x43ru4ggas5
Credits to:Who ever made this FilterScript
I dont know who made this FilterScript enjoy using this Filterscript
i will try it but i need the pwn i want to update it
i tried it the coridentis is not right
Quote:
Originally Posted by MP2
View Post
Players can have 13 weapons, but only equip one, so how are you going to attach 12 weapons on a player's back? I assume that's what you mean.
i know i mean if player have only bazooka, satchel charge, mp5, ak47


Re: How i do weapons on back? - Accord - 03.05.2012

if you have any problem working in everysecond so you can check if person without this weapon so it's will attach this weapon on your back, if you need any help with the script feel free to request help.


Re: How i do weapons on back? - DeLeX - 03.05.2012

Quote:
Originally Posted by Accord
View Post
if you have any problem working in everysecond so you can check if person without this weapon so it's will attach this weapon on your back, if you need any help with the script feel free to request help.
on what public i put AttachObjectToPlayer?


Re: How i do weapons on back? - Faisal_khan - 03.05.2012

Quote:
Originally Posted by DeLeX
View Post
on what public i put AttachObjectToPlayer?
Don't call it public it is callback. Put it under OnPlayerUpdate.

Quote:
Originally Posted by Accord
View Post
In your time public...
What do you mean buddy?