20.09.2013, 14:22
One simple question, how i can remove the spawn button from teamselection?
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, 1);
SpawnPlayer(playerid);
SetTimerEx("SkipOnPlayerRequestClass", 100, false, "i", playerid);
return 1;
}
//Place it anywhere
forward SkipOnPlayerRequestClass(playerid);
public SkipOnPlayerRequestClass(playerid)
{
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, 0);
return 1;
}
forward SkipOnPlayerRequestClass(playerid);
public SkipOnPlayerRequestClass(playerid)
{
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, 0);
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST, "Choose Your Team", "Terrorist\n Etc...", "Choose", "");
return 1;
}