Class selection buttons
#7

Not coded for samp in a long time i might be wrong, but if IIRC you need to put the player into spectate when they connect, and return 0 in OnPlayerRequestClass if they are not logged.

Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);	

    //show dialog	
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if( !PlayerIsLoggedVarGoesHere )//set this var to true when they enter correct password (OnDialogResponse)
    {
        //show dialog again
	return 0;
    }
    //player is logged
    TogglePlayerSpectating(playerid, false);
    return 1;
}
Reply


Messages In This Thread
Class selection buttons - by 1nspire - 15.04.2017, 22:43
Re: Class selection buttons - by DarkSkull - 15.04.2017, 22:45
Re: Class selection buttons - by 1nspire - 15.04.2017, 22:54
Re: Class selection buttons - by DarkSkull - 15.04.2017, 22:55
Re: Class selection buttons - by RIDE2DAY - 15.04.2017, 22:57
Re: Class selection buttons - by 1nspire - 16.04.2017, 09:03
Re: Class selection buttons - by iggy1 - 16.04.2017, 09:21
Re: Class selection buttons - by 1nspire - 16.04.2017, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)