SA-MP Forums Archive
OnPlayerSpawn bottle and cigarrette - 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: OnPlayerSpawn bottle and cigarrette (/showthread.php?tid=296568)



OnPlayerSpawn bottle and cigarrette - ZeQualX - 12.11.2011

Hi everyone,

this is very old cause i've seen this long time ago, but i dont know how to avoid this anoying issue cause when the player spawns shows the "< > Spawn" buttoms like OnPlayerRequest but this only happens on the first time i die...

so if anyone knows how to avoid this i will really appreciate it, thanks.


Re: OnPlayerSpawn bottle and cigarrette - Norn - 12.11.2011

AFAIK this is caused when the player is force spawned without any spawn info being set.


Re: OnPlayerSpawn bottle and cigarrette - ZeQualX - 12.11.2011

Nope, i already setted spawn info so isnt that...


Re: OnPlayerSpawn bottle and cigarrette - park4bmx - 12.11.2011

You can use IsPlayerHoldingObject when the player spawns and the just remove his object
pawn Код:
if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid);



Re: OnPlayerSpawn bottle and cigarrette - ZeQualX - 12.11.2011

i dont think it gonna work since this problems cames from older versions.