kill and RequestClass sometimes
#1

Hi,

When I died the frist time on my server I spawn with a other skin near CJ house with the Arrow and spawn (OnPlayerRequestClass) Every time. I need to click on "spawn" for spawn in my house. After it's ok. Whats the problem? thanks

Код:
public OnPlayerRequestSpawn(playerid)
{
    if(IsPlayerNPC(playerid))return 1;
    if(!gPlayerLogged[playerid])return 0;
	return true;
}
public OnPlayerRequestClass(playerid,classid)
{
    if(IsPlayerNPC(playerid))return 1;
    if(Kick[playerid]==1)return Kick(playerid);
    if(!gPlayerLogged[playerid])return 0;
	return true;
}
Reply
#2

Please clarify - you return to class selection after death?

Check your script for ForceClassSelection, and make sure you didn't press F4 in-game. You should set a variable to 1 after the player spawns and in OnPlayerRequestClass if it's 1 you can force them to spawn, to disable F4.
Reply
#3

Yes just 1 time after my first death and I don't press f4. i don't use ForceClassSelection.
Reply
#4

Debug:

//first death
[04:41:54] Ombre has set Ombre's hp to 0
[04:41:54] OnPlayerStateChange
[04:41:54] OnPlayerDeath
[04:41:54] [death] Ombre died 255
[04:41:58] OnPlayerRequestClass //Why OnPlayerRequestClass its call? I click on spawn
[04:42:00] OnPlayerRequestSpawn
[04:42:00] OnPlayerStateChange

//secondly
[04:42:51] Ombre has set Ombre's hp to 0
[04:42:51] OnPlayerStateChange
[04:42:51] OnPlayerDeath
[04:42:51] [death] Ombre died 255
[04:42:55] OnPlayerStateChange //Why OnPlayerRequestClass its not call?
[04:42:55] OnPlayerSpawn
[04:42:55] SetPlayerSpawn
Reply
#5

If you have SetSpawnInfo in your script that you added to resolve the 0.3d kick issue, remove it. It's fixed in 0.3e.
Reply
#6

Yes I have but it's no resolute my problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)