ForceClassSelection and OnPlayerDeath
#1

Why wont this work?
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    ForceClassSelection(playerid);
    return 1;
}
I want to call OnPlayerRequestClass when a player dies.
Reply
#2

Show us the code underneath OnPlayerRequestClass().
Reply
#3

Perhaps it has to be called BEFORE death?
Reply
#4

Quote:
Originally Posted by MP2
Посмотреть сообщение
Perhaps it has to be called BEFORE death?
Thank you! To others that might have this problem, use ForceClassSelection in OnPlayerSpawn that will do the trick.
Код:
public OnPlayerSpawn(playerid)
{
    ForceClassSelection(playerid);
    return 1;
}
Reply
#5

Just don't do anything under OnPlayerDeath. The Class Selection is automatically called after the death in SAMP.
Reply
#6

Quote:
Originally Posted by HashFr
Посмотреть сообщение
Just don't do anything under OnPlayerDeath. The Class Selection is automatically called after the death in SAMP.
No it's not.
Reply
#7

EDIT: Accident, sorry. Posted on the searched topic instead of the help topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)