Removing the class selection buttons
#7

How to remove the "Spawn" button:

Код:
new bool:allowspawn[MAX_PLAYERS];
Код:
public OnPlayerConnect(playerid)
{
	allowspawn[playerid] = false;
}
After the player has logged in:
Код:
allowspawn[playerid] = true;
Код:
public OnPlayerRequestSpawn(playerid)
{
	if(allowspawn[playerid] == false)
	return 0;
}
And nothing happens when the player press the "Spawn" button!

Now how to remove the "<<" and ">>" buttons:

Add 2 player classes:
Код:
public OnGameModeInit()
{
	AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
}
Код:
public OnPlayerRequestClass(playerid, classid)
{
	if(classid == 1) return 0;
}
Reply


Messages In This Thread
Removing the class selection buttons - by mitchboy - 21.02.2012, 15:24
Re: Removing the class selection buttons - by niels44 - 21.02.2012, 15:26
Re: Removing the class selection buttons - by mitchboy - 21.02.2012, 15:43
Re: Removing the class selection buttons - by DrakeX - 21.02.2012, 16:46
Re: Removing the class selection buttons - by milanosie - 21.02.2012, 16:47
Re: Removing the class selection buttons - by mitchboy - 21.02.2012, 16:48
Re: Removing the class selection buttons - by Maxymex - 17.06.2014, 13:48
Re: Removing the class selection buttons - by Rittik - 17.06.2014, 13:55
Re: Removing the class selection buttons - by Mey6155 - 17.06.2014, 14:37
Re: Removing the class selection buttons - by Maxymex - 17.06.2014, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)