SKIP OnPlayerReauestClass & F4 button
#1

Hello, sorry for my bad english.
I have one question: how to skip class selection at a connection and a request to classs selection by pressing F4? Do not tell me that we can not, because I've seen it on some servers.

some code (it worked before, not now )
PHP код:
public OnPlayerConnect(playeridclassid)
{    
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SpawnPlayer(playerid);

Reply
#2

TogglePlayerSpectating(playerid,1);

set a timer

TogglePlayerSpectating(playerid,0);
Reply
#3

Quote:
Originally Posted by C00K13M0N$73R
Посмотреть сообщение
TogglePlayerSpectating(playerid,1);

set a timer

TogglePlayerSpectating(playerid,0);
ok, thanks. now F4 button problem.
Reply
#4

You can't stop the button from being pressed. Just make sure you have TogglePlayerSpectating under OnPlayerRequestClass and it'll prevent the player from ever entering class selection. (even after they died).

Make sure you turn TogglePlayerSpectating off at OnPlayerSpawn or somewhere else, otherwise you'll always be in spectating mode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)