Removing arrows.
#1

Hello people,

I saw a server where theres no arrows when you input your password to login [RP server] so how coul i do this? removing the arrows that appears when you connect to the server.

If anyone could help i would appreciate it very much.

Thanks!
Reply
#2

A lot of people use the SpectatePlayer exploit, but it's kind of inefficient. What I use is a 1ms timer after OnPlayerRequestClass if the player isn't logged in, the timer will spawn the player and then I'll place the camera some place while the player is frozen someplace


pawn Код:
forward SkipRequestClass(playerid);
public OnPlayerRequestClass(playerid,classid)
{
    if(PLAYER_IS_NOT_LOGGED_IN)
    {
        SetTimerEx("SkipRequestClass",1,0,"i",playerid);
        return 1;
    }
    //Your usual code
}
public SkipRequestClass(playerid)
{
    SpawnPlayer(playerid);
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(newstate==spawned)
    {
        if(PLAYER_IS_NOT_LOGGED_IN)
        {
            SetCameraPos(playerid,0.0,0.0,1000.0);
            SetCameraLookAt(playerid,0.0,0.0,1001.0);
            SetPlayerPos(playerid,0.0,0.0,0.0);
            TogglePlayerControllable(playerid,0);
            //ShowPlayerLoginDialog -- Once logged in use ForceClassSelection(playerid); and SetPlayerHealth(playerid,0.0);
            return 1;
        }
    }
}
Reply
#3

So you mean OnyerRequestClass is the one that shows the arrows?
Reply
#4

Ok i've done it without any timer and forward i used stock and called the function so works nice thanks for the help.

*Closed*
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)