Problem Death player
#1

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 ?
Reply
#2

PHP код:
public OnPlayerRequestClass(playerid,classid)
{
    
SpawnPlayer(playerid);
    return 
1;

Reply
#3

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
Reply
#4

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?
Reply
#5

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Search for ' ForceClassSelection(playerid); ' in your script
I just watched, everything is good, the ForceClassSelection is only in commands
Reply
#6

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
Reply
#7

No I want that when the player gets killed, respawn normally, and no sends to the classSelection
Reply
#8

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 ?
Reply
#9

https://pastebin.com/VPRL07wg
Reply
#10

OK try this,
Print the value of classid and isConnected in OnPlayerRequestClass and show the logs after you die
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)