SA-MP Forums Archive
Drop Guns When we die - 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: Drop Guns When we die (/showthread.php?tid=164044)



Drop Guns When we die - fmmalves - 29.07.2010

Please someone knows the code to drop guns when we die...

Someone? =/


Re: Drop Guns When we die - John_F - 29.07.2010

onplayerdeath:
getplayerpos
addstaticpickup


Re: Drop Guns When we die - Cameltoe - 29.07.2010

ResetPlayerWeapons are what you are looking for.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    ResetPlayerWeapons(ID to remove wep from);
    return 1;
}



Re: Drop Guns When we die - John_F - 29.07.2010

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
ResetPlayerWeapons are what you are looking for.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    ResetPlayerWeapons(ID to remove wep from);
    return 1;
}
I think he means, he wants the guns the person had to appear on the floor next to the dead body when the player dies, not just lose the weapons on death.


Re: Drop Guns When we die - fmmalves - 29.07.2010

yes john is that!


Re: Drop Guns When we die - fmmalves - 29.07.2010

but john these are the codes? ....


Re: Drop Guns When we die - Cameltoe - 29.07.2010

Don't double post ..

http://wiki.sa-mp.com

read about callbacks there


Re: Drop Guns When we die - John_F - 29.07.2010

Then use something like:

OnPlayerDeath:
GetPlayerWeaponData
GetPlayerPos
AddStaticPickup


Re: Drop Guns When we die - fmmalves - 29.07.2010

man i dont understand many things. Im not a scripter, i just want the codes not learning what is a callback, but thx.

I m helping a friend.


Re: Drop Guns When we die - Cameltoe - 29.07.2010

go to the wiki and search for those lines john wrote .. if you don't understand then read about callback's etc .. if your not interested in learning give the links to your "friend"