SA-MP Forums Archive
BUG Spawn - 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: BUG Spawn (/showthread.php?tid=645180)

Pages: 1 2 3


Re: BUG Spawn - Kevin51 - 07.12.2017

upppppp


Re: BUG Spawn - AjaxM - 11.12.2017

Use SetSpawnInfo before TogglePlayerSpectate.

(Thanks denNorske)


Re: BUG Spawn - Kevin51 - 11.12.2017

Not work..


Re: BUG Spawn - Kevin51 - 11.12.2017

uppppppp please


Re: BUG Spawn - RogueDrifter - 11.12.2017

can you show me your OnPlayerSpawn OnPlayerRequestClass and OnPlayerRequestSpawn?


Re: BUG Spawn - Kevin51 - 11.12.2017

OnPlayerSpawn: https://pastebin.com/fSGFqmRA

OnPlayerRequestClass: https://pastebin.com/d8Rp4kMq

OnPlayerRequestSpawn: https://pastebin.com/RHJCjNn7


Re: BUG Spawn - Xeon™ - 11.12.2017

Quote:
Originally Posted by Kevin51
Посмотреть сообщение
OnPlayerSpawn: https://pastebin.com/fSGFqmRA

OnPlayerRequestClass: https://pastebin.com/d8Rp4kMq

OnPlayerRequestSpawn: https://pastebin.com/RHJCjNn7
OnPlayerDeath, List of filterscripts/plugin that you use.


Re: BUG Spawn - RogueDrifter - 11.12.2017

Quote:
Originally Posted by Kevin51
Посмотреть сообщение
OnPlayerSpawn: https://pastebin.com/fSGFqmRA

OnPlayerRequestClass: https://pastebin.com/d8Rp4kMq

OnPlayerRequestSpawn: https://pastebin.com/RHJCjNn7
Thanks! I'm not very sure but just for tryouts remove the line saying
PHP код:
if(IsConnected[playerid] == 0) return 0
from all of your functions temporary, if it isn't fixed then sorry this is beyond me put back that line and wait for another answer.
Xeon he ALREADY included onplayerdeath on the previous pages please read the comments&post fully.


Re: BUG Spawn - Kevin51 - 11.12.2017

i not used filterscript, and u use plugins mysql sscanf streamer whirpool


Re: BUG Spawn - RogueDrifter - 11.12.2017

Quote:
Originally Posted by Kevin51
Посмотреть сообщение
i not used filterscript, and u use plugins mysql sscanf streamer whirpool
did you try removing that line i mentioned and tested again?


Re: BUG Spawn - Kevin51 - 12.12.2017

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
did you try removing that line i mentioned and tested again?
Yes :/


Re: BUG Spawn - Xeon™ - 12.12.2017

Oh I found your problem (was busy yesterday)

IsConnected[playerid] under OnPlayerSpawn, it should be in OnPlayerConnect instead.

Because the player dies when he connects (first spawn, you are return 0; in the check of IsConencted in OnPlayerDeath that why it get you back to there)


Re: BUG Spawn - Kevin51 - 12.12.2017

Quote:
Originally Posted by Xeon™
Посмотреть сообщение
Oh I found your problem (was busy yesterday)

IsConnected[playerid] under OnPlayerSpawn, it should be in OnPlayerConnect instead.

Because the player dies when he connects (first spawn, you are return 0; in the check of IsConencted in OnPlayerDeath that why it get you back to there)
not work..


Re: BUG Spawn - Xeon™ - 12.12.2017

Quote:
Originally Posted by Kevin51
Посмотреть сообщение
not work..
i meant by that remove Isconnected from OnPlayerDeath


Re: BUG Spawn - Kevin51 - 12.12.2017

Not work O_o


Re: BUG Spawn - RogueDrifter - 12.12.2017

Quote:
Originally Posted by Xeon™
Посмотреть сообщение
i meant by that remove Isconnected from OnPlayerDeath
Xeon what are u on? i already told him to remove the isplayerconnected return 0 stop making useless comments and/or repeating other's comments...
OP:maybe you're using other filterscripts that force the player to have this bug try running only one script if you already aren't.


Re: BUG Spawn - Xeon™ - 12.12.2017

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Xeon what are u on? i already told him to remove the isplayerconnected return 0 stop making useless comments and/or repeating other's comments...
OP:maybe you're using other filterscripts that force the player to have this bug try running only one script if you already aren't.
first i said IsConnected variable not the isplayerconnected mriknoweverything.

second:

RogueDrifter what are u on? i already asked him that and he said he has no filterscripts stop making useless comments and/or repeating other's comments...


Re: BUG Spawn - Kevin51 - 14.12.2017

upppppppp


Re: BUG Spawn - Kevin51 - 14.12.2017

uppppppppppppppp


Re: BUG Spawn - Sew_Sumi - 14.12.2017

24 hour bumps only...



As for the rest of your code, show the OnPlayerDeath again, and this 'respawn protection' you have.

I'm pretty sure there'll be something in the protection is malfunctioning.