Is this possible?
#1

Hello, just a small question...


Is it possible to disable the F4 thingy? which makes you go back to class selection.
Reply
#2

spawn the player whenever he request a class.
Reply
#3

Tried this but it doesnt work.

Under OnPlayerRequestClass:
pawn Код:
if(pInfo[playerid][Logged] == 1)
{
SpawnPlayer(playerid);
SendClientMessage(playerid,COLOR_PINK2,"Error: This function is Disabled");
}
Reply
#4

Explain what happens / what doesn't happen

If the player is logged in he already has a class, blabla, so the code should work in OnPlayerRequestClass
You need to place that at top of the public and add a return at the end

If you additionall want to disable to message (if you press F4) just put ForceClassSelection in OnPlayerSpawn
Reply
#5

When the code is applied to OnPlayerRequestClass, and in game when the player does F4 and /kill it still takes the player to the Class selection.
Reply
#6

Delay the SpawnPlayer with a timer, mostly happens because OnPlayerRequestClass is called before the internal sa-mp code
Reply
#7

Fixed Anways. Had to set the players logged status to 0 on disconnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)