Problem Death player -
Kevin51 - 09.11.2017
Hello everyone.
I have a very small problem, when the player dies his returns him in the ClassSelection, but his only one time ..
Example: If I get killed a first time, it returns to ClassSelection, but the other times it works, I do not understand .. and it does it for everyone.
Have a idea ?
Re: Problem Death player -
StrikerZ - 09.11.2017
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
SpawnPlayer(playerid);
return 1;
}
Re: Problem Death player -
Kevin51 - 09.11.2017
Quote:
Originally Posted by Sunehildeep
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
SpawnPlayer(playerid);
return 1;
}
|
I already tried, I tried a lot of things before thread.. no work
And then, it does not work because I have several teams, and we have no time to select are gang his spawn alone live with your proposal
Re: Problem Death player -
StrikerZ - 09.11.2017
Quote:
Originally Posted by Kevin51
I already tried, I tried a lot of things before thread.. no work
|
Search for ' ForceClassSelection(playerid); ' in your script
Edit: and do you want class selection at every death or not?
Re: Problem Death player -
Kevin51 - 09.11.2017
Quote:
Originally Posted by Sunehildeep
Search for ' ForceClassSelection(playerid); ' in your script
|
I just watched, everything is good, the ForceClassSelection is only in commands
Re: Problem Death player -
StrikerZ - 09.11.2017
Quote:
Originally Posted by Kevin51
I just watched, everything is good, the ForceClassSelection is only in commands
|
Can you check my edit in previous post? Need some more info
Re: Problem Death player -
Kevin51 - 09.11.2017
No I want that when the player gets killed, respawn normally, and no sends to the classSelection
Re: Problem Death player -
StrikerZ - 09.11.2017
Quote:
Originally Posted by Kevin51
No I want that when the player gets killed, respawn normally, and no sends to the classSelection
|
Can you show your OnPlayerDeath and OnPlayerSpawn and OnPlayerRequestClass ?
Re: Problem Death player -
Kevin51 - 09.11.2017
https://pastebin.com/VPRL07wg
Re: Problem Death player -
StrikerZ - 09.11.2017
OK try this,
Print the value of classid and isConnected in OnPlayerRequestClass and show the logs after you die