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


BUG Spawn - Kevin51 - 21.11.2017

Hello everyone, I have a small problem, when the player dies the very first time, his returns to ClassSelection, but after it works normally O_o..
If you need a script, tell me.

Video of bug: https://www.youtube.com/watch?v=khet...ature=*********


Re: BUG Spawn - Meller - 21.11.2017

OnPlayerRequestClass -> SpawnPlayer?


Re: BUG Spawn - Kevin51 - 21.11.2017

and how i can choose a team ? is a TDM gamemode


Re: BUG Spawn - Ritzy2K - 22.11.2017

Are you sure ForceClassSelection isn't anywhere in the script?


Re: BUG Spawn - Kevin51 - 22.11.2017

Nope, only on a commands.. :/


Re: BUG Spawn - Kevin51 - 22.11.2017

uppppp


Re: BUG Spawn - Escobabe - 22.11.2017

Can you post OnPlayerDeath?


Re: BUG Spawn - Kevin51 - 23.11.2017

Of course, onplayerdead link: https://pastebin.com/KHPHspHh


Re: BUG Spawn - Kevin51 - 23.11.2017

uppppppppppppp


Re: BUG Spawn - Kevin51 - 24.11.2017

uppppp


Re: BUG Spawn - Meller - 24.11.2017

Look up the variable name for the textdraw with the string of "TEAM GROVE", then paste every code where TextDrawShowForPlayer with the variable is.


Re: BUG Spawn - RedFusion - 24.11.2017

It seems like somewhere in your gamemode or loaded filterscripts you're using ForceClassSelection
https://sampwiki.blast.hk/wiki/ForceClassSelection


Re: BUG Spawn - Kevin51 - 24.11.2017

I don't have filterscipt and i only use ForceClassSelection on 1 command :/


Re: BUG Spawn - grymtn - 25.11.2017

i know this is a really stupid question but... did you ever try
Код:
if(GetPlayerTeam(playerid)!=0)   //check if player selected a team
{
    ///force your players to spawn here.
}
else{
    ///do your spawn selection here.
}
if player selected a team, GetPlayerTeam wouldnt return 0 and you can directly spawn them? i assume on second death you already use it but maybe you dont define if before first death? it looks like that to me. Its generally the silliest and simplest answer solves the problem in death scripts, if you are sure of you didnt do anything wrong in the first question that pops in minds.


Re: BUG Spawn - Kevin51 - 02.12.2017

Quote:
Originally Posted by grymtn
Посмотреть сообщение
i know this is a really stupid question but... did you ever try
Код:
if(GetPlayerTeam(playerid)!=0)   //check if player selected a team
{
    ///force your players to spawn here.
}
else{
    ///do your spawn selection here.
}
if player selected a team, GetPlayerTeam wouldnt return 0 and you can directly spawn them? i assume on second death you already use it but maybe you dont define if before first death? it looks like that to me. Its generally the silliest and simplest answer solves the problem in death scripts, if you are sure of you didnt do anything wrong in the first question that pops in minds.
I did not understand.. :/


Re: BUG Spawn - Kevin51 - 03.12.2017

uppppppp


Re: BUG Spawn - Kevin51 - 04.12.2017

upppppp


Re: BUG Spawn - Kevin51 - 05.12.2017

uppppppp


Re: BUG Spawn - Sew_Sumi - 05.12.2017

You're using the callbacks wrong if you aren't using OnPlayerRequestClass...


Re: BUG Spawn - Kevin51 - 06.12.2017

Huh ?