SA-MP Forums Archive
OnPlayerRequestClass (F4) Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerRequestClass (F4) Bug (/showthread.php?tid=370360)



OnPlayerRequestClass (F4) Bug - Zunno - 19.08.2012

Hello,
I have a problem with the OnPlayerRequestClass.
Whenever I press F4 I come directly to the skin selection...
I have no idea how I can fix this bug.
Does anyone have this bug or maybe even know how to fix it?

Sincerely,
Zunno


Re: OnPlayerRequestClass (F4) Bug - [HR]Speedy™ - 20.08.2012

This is only on your mode or?


Re: OnPlayerRequestClass (F4) Bug - Kirollos - 20.08.2012

you mean that when you press F4 , you found yourself in skin selection in the same momment?


Re: OnPlayerRequestClass (F4) Bug - Lordzy - 20.08.2012

Whoa!
I haven't noticed such stuff in my entire SA-MP life.
Is it happening for other players in that particular server only?


AW: OnPlayerRequestClass (F4) Bug - Zunno - 20.08.2012

Quote:
Originally Posted by kirollos
Посмотреть сообщение
you mean that when you press F4 , you found yourself in skin selection in the same momment?
yes.

Quote:
Originally Posted by [xB]Lordz
Посмотреть сообщение
Whoa!
I haven't noticed such stuff in my entire SA-MP life.
Is it happening for other players in that particular server only?
yes, this is for all players and i don't know what it is.


Re: OnPlayerRequestClass (F4) Bug - trapstar2020 - 20.08.2012

check your script and plz ensure you didnt onplayerkeystate set f4 for force class selection, as many have done this as a shortcut for it


Re: OnPlayerRequestClass (F4) Bug - Lordzy - 20.08.2012

Check with your key functions in your script.
pawn Код:
public OnPlayerKeyState
//check whether any key is used to send player to skin selection.



AW: OnPlayerRequestClass (F4) Bug - Zunno - 20.08.2012

I have uncomment my OnPlayerKeyStateChange, nothing..
i have forgotten to say, that i can't leave the Class Selection when i have press F4...

I don't use ForceClassSelection in my script.


Re: OnPlayerRequestClass (F4) Bug - budelis - 20.08.2012

Your enum put this:

Код:
AntiF4
Under OnPlayerConnect:

Код:
PlayerData[ playerid ][ AntiF4 ] = 0;
Under OnPlayerDeath:

Код:
PlayerData[ playerid ][ AntiF4 ] = 1;
Under OnPlayerRequestClass

Код:
if( PlayerData[ playerid ][ AntiF4 ] == 1 )
{
Kick( playerid );
}



AW: OnPlayerRequestClass (F4) Bug - Zunno - 20.08.2012

this is not really what i want. :S