05.03.2012, 16:33
Quote:
you have to use OnPlayerRequestSpawn callback
and switch classes? |
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;
}