kill and RequestClass sometimes -
ombre - 01.06.2012
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;
}
Re: kill and RequestClass sometimes -
MP2 - 01.06.2012
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.
Re : kill and RequestClass sometimes -
ombre - 01.06.2012
Yes just 1 time after my first death and I don't press f4. i don't use ForceClassSelection.
Re : kill and RequestClass sometimes -
ombre - 02.06.2012
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
Re: kill and RequestClass sometimes -
SuperViper - 02.06.2012
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.
Re : kill and RequestClass sometimes -
ombre - 02.06.2012
Yes I have but it's no resolute my problem