Disable Class Selection
#3

Try this code.
Код:
public OnPlayerRequestSpawn( playerid )
{
    return 1; // You must return 1 to do this. 
}
Код:
public OnPlayerRequestClass( playerid, classid )
{
    return 0; // Skipping the class request
}
Код:
public OnPlayerSpawn( playerid )
{
    SetPlayerSkin( playerid, 0 ); // Example
    SetPlayerPos( playerid, 0.0, 0.0, 0.0 );
    return 1;
}
If this is not working out then you can try.
Код:
public OnPlayerConnect(playerid)
{
     SetSpawnInfo(...); //Fill this in
     SpawnPlayer(playerid);
     return 1;
}
Reply


Messages In This Thread
Disable Class Selection - by Axel712 - 10.10.2015, 14:39
Re: Disable Class Selection - by jlalt - 10.10.2015, 14:41
Re: Disable Class Selection - by ZeMuNaC - 10.10.2015, 14:44
Re: Disable Class Selection - by Axel712 - 10.10.2015, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)