SA-MP Forums Archive
Disableing Skin Menu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Disableing Skin Menu (/showthread.php?tid=121760)



Disableing Skin Menu - ArTisT - 18.01.2010

If someone press F4 and dies he/she shouldn't get to the class menu he should just spawn.

Any one have a idea ?


Re: Disableing Skin Menu - KnooL - 18.01.2010

option 1: in the public OnPlayerRequestClass:
pawn Код:
SpawnPlayer(playerid);
second option: put a timer onplayerdeath with TogglePlayerSpectating(playerid,1); in the public and in the timer you should have something like this:
pawn Код:
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid,0);
... loading character information here and set the player position.



Re: Disableing Skin Menu - ArTisT - 18.01.2010

Under OnPlayerRequestClass i have this

Код:
public OnPlayerRequestClass(playerid, classid)
{
	new string[128];
	PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); // 1068 1062
	PlayerInfo[playerid][pModel] = Peds[classid][0];
	
	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		ClearChatbox(playerid, 10);
		PlayerInfo[playerid][pMuted] = 1;
		format(string, sizeof(string), "Welcome
		SendClientMessage(playerid, COLOR_BLUE1, string);
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		if (gPlayerAccount[playerid] != 0)
		{
			SendClientMessage(playerid, COLOR_WHITE, "Hint: Use /login <password> to log in to your game account.");
			//SendClientMessage(playerid, COLOR_LIGHTRED, "You'll be kicked in 60 seconds if you won't login !");
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREEN1, "You need to register to play here");
			SendClientMessage(playerid, COLOR_WHITE, "HINT: /register [password]");
		}
		SetPlayerCameraPos(playerid, );
		SetPlayerCameraLookAt(playerid, );
		SetPlayerPos(playerid, );
		//PlayerPlaySound(playerid, );
		PlayerInfo[playerid][pModel] = Peds[classid][0];
		SetPlayerTeamFromClass(playerid,classid);
	}
	else SpawnPlayer(playerid);
	return false;
where should i put it ?


Re: Disableing Skin Menu - KnooL - 18.01.2010

onplayerconnect