When the player death create pickup - 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: When the player death create pickup (
/showthread.php?tid=171856)
When the player death create pickup -
IceTea15 - 28.08.2010
Hello
When the player death create pickup of him weapon. I tried make it but it didn't work. Help me please.
Re: When the player death create pickup -
[HiC]TheKiller - 28.08.2010
If he is holding a weapon use
https://sampwiki.blast.hk/wiki/GetPlayerWeapon or use
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData and then create the pickup from there.
Re: When the player death create pickup -
IceTea15 - 28.08.2010
please write example
Re: When the player death create pickup -
Retardedwolf - 28.08.2010
There is a script for this. Search might help you
Re: When the player death create pickup -
IceTea15 - 28.08.2010
Код:
if(GetPlayerWeapon(playerid) == 31)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(356,4,X,Y,Z,0);
}
if(GetPlayerWeapon(playerid) == 24)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(348,4,X+2,Y+2,Z,0);
}
this don't work what's the problem ?
Re: When the player death create pickup -
IceTea15 - 28.08.2010
Код:
for (new i=0; i<9; i++)
{
new sweapon,sammo;
GetPlayerWeaponData(playerid, i, sweapon, sammo);
if(sweapon == 31)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(356,4,X,Y,Z,0);
}
if(sweapon == 24)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(348,4,X+2,Y+2,Z,0);
}
}
this works in a command but in OnPlayerDeath don't. WHY?Help meee please
Re: When the player death create pickup -
Claude - 28.08.2010
Try searching on the forums, such scripts are released..