OnPlayerDeath
#1

I have a problem when the player dies, the screen shows this:




I do not know how to fix, I studied all functions not found the solution ..
Reply
#2

Show us the callback

public OnPlayerRequestClass(playerid, classid)
Reply
#3

Find it in onplayerdeath

https://sampwiki.blast.hk/wiki/ForceClassSelection
Reply
#4

It probably calls ForceClassSelection so on re-spawn, it shows the class selection.

Edit: Oh, you found it.

EDIT 2: Sorry, I thought the above user was the starter of the thread and got it fixed but my mistake.
Reply
#5

Quote:
Originally Posted by Huba
Посмотреть сообщение
Quote:
Originally Posted by AlexBlack
Посмотреть сообщение
Show us the callback

public OnPlayerRequestClass(playerid, classid)
Has neither ..




Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It probably calls ForceClassSelection so on re-spawn, it shows the class selection.

Edit: Oh, you found it.
How should I do? Do you have a base, please?
Reply
#6

try this
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetSpawnInfo(playerid000000000000); //Edit those to match your script
    
SpawnPlayer(playerid);
    return 
1;

Reply
#7

reputed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)