Drop Guns When we die
#1

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

Someone? =/
Reply
#2

onplayerdeath:
getplayerpos
addstaticpickup
Reply
#3

ResetPlayerWeapons are what you are looking for.

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

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.
Reply
#5

yes john is that!
Reply
#6

but john these are the codes? ....
Reply
#7

Don't double post ..

http://wiki.sa-mp.com

read about callbacks there
Reply
#8

Then use something like:

OnPlayerDeath:
GetPlayerWeaponData
GetPlayerPos
AddStaticPickup
Reply
#9

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.
Reply
#10

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)