Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
What's the callback when player has f4 pressed and dies and what does he go to next? I want to disable f4 function. is it possible to disable it on player press f4 to not work or something? I have m own system of classes/whatever. Is it possible? And what do I need to change? I didn't script anything yet, just optimising my callbacks/code for now
Posts: 1,070
Threads: 12
Joined: Jun 2009
Reputation:
0
I don't think so. I think that this function includes in your SA-MP. But I'm not sure...
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Well, that F4 function is hardcoded into sa-mp ... When F4 is pressed and the player dies, the OnPlayerRequestClass is called.
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
uh huh, ok. That means I can check if player recently died and if he goes to that function and spawn him reseting the params that are neededto be setted by my script, yes?
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
I think you can go pass it by adding SpawnPlayer(playerid) under OnPlayerDeath
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
that's a way, but they cannot spawn by selecting a class cause I use my login script to spawn them. Hmm.. I wonder what happens if I add no classes? I'll test that
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Probably you will just get stuck on the Vinewood screen since there are no classes to display.