< > & Spawn button
#5

Quote:
Originally Posted by vassilis
Посмотреть сообщение
you have to use OnPlayerRequestSpawn callback


and switch classes?
He should use it on the OnPlayerRequestSpawn for the first case on "Spawn Button"
For the two buttons ( < > ) use as iTorran said the OnPlayerRequestClass Callback.
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
    if( !IsPlayerLogin[ playerid ] ) // ofc replace it with your variable's name.
    {
        SendClientMessage( playerid, -1, "You need to login first" );
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
< > & Spawn button - by Dripac - 05.03.2012, 11:45
Re: < > & Spawn button - by iTorran - 05.03.2012, 11:48
AW: < > & Spawn button - by Dripac - 05.03.2012, 15:25
Re: AW: < > & Spawn button - by vassilis - 05.03.2012, 16:28
Re: AW: < > & Spawn button - by Konstantinos - 05.03.2012, 16:33
Re: < > & Spawn button - by Twisted_Insane - 05.03.2012, 16:36
Re: < > & Spawn button - by Dripac - 05.03.2012, 16:38

Forum Jump:


Users browsing this thread: 4 Guest(s)