20.11.2010, 12:37
When i die it instantly goes to class selection screen, how can i disable that?
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; }
SetSpawnInfo( playerid, 0, 0, 2809.5129,-2393.0266,13.6284, 89.0573, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid);
ForceClassSelection(playerid); SetSpawnInfo( playerid, 0, 0, 2809.5129,-2393.0266,13.6284, 89.0573, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid);