class selection screen
#1

When i die it instantly goes to class selection screen, how can i disable that?
Reply
#2

Don't press f4?


This forum requires that you wait 120 seconds between posts. Please try again in 89 seconds.


This forum requires that you wait 120 seconds between posts. Please try again in 28 seconds.
Reply
#3

i dont press F4?
Reply
#4

If you press f4 you automaticly go to class selection when you die...

If you don't press f4 and it still happends, go into your script and go to onPlayerDeath, and show me what is there
Reply
#5

there's nothing wrong in onplayerdeath if i anyways remove all code from it, it still shows the selection screen.
anyways
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new Float:X, Float:Y, Float:Z;
	
	GetPlayerPos(playerid, X, Y, Z);
	
	SetPlayerPos(playerid, X, Y, Z);
    TogglePlayerControllable(playerid, false);
    
    ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",1,0,0,0,0,0);
    
	SendClientMessage(playerid, COLOR_LIGHTRED, "You have fallen unconscious, but there's a chance that you'll die permamently. The chance is 1:99, Be careful!");
    SendClientMessage(playerid, COLOR_LIGHTRED, "You have to wait emergency services in order to get up on your feet.");
	SendClientMessage(playerid, COLOR_LIGHTRED, "NOTE: if you died permamently your character will die, not your account.");

	return 1;
}
Reply
#6

hmm, and can I see on player connect and the classselection?
Reply
#7

Show us OnPlayerSpawn.
Reply
#8

Код:
    SetSpawnInfo( playerid, 0, 0, 2809.5129,-2393.0266,13.6284, 89.0573, 0, 0, 0, 0, 0, 0 );
    SpawnPlayer(playerid);
OnPlayerConnect...
Maybe that's the cause, any ideas to fix it?
Reply
#9

Search for ForceClassSelection, that's the equivalent of pressing F4.
Reply
#10

OnPlayerConnect
Код:
    ForceClassSelection(playerid);
    SetSpawnInfo( playerid, 0, 0, 2809.5129,-2393.0266,13.6284, 89.0573, 0, 0, 0, 0, 0, 0 );
    SpawnPlayer(playerid);
I hope this works..

EDIT: Still the same..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)