Jump to content
  • 0

pomoc Pustí mě ke spawnu :/


mourison

Dotaz

Zdravím, vše se zobrazí, ale hráč má možnost výběru postavy a spawnout se :/, nevím jak to můžu zakázat. 

public OnPlayerConnect(playerid)
{
PLAYERLIST_authed[playerid] = false;


if(!PLAYERLIST_authed[playerid])
     		{
				if(udb_Exists(PlayerName(playerid)))
				{
		    		if(Hrac[playerid][pban] == 1)
		    		{
                		SCM(playerid, CERVENA, "[SYSTÉM] Máš permanentní ban, snad někdy příště :P");
						Kick(playerid);
						return 0;
					}

			TextDrawShowForPlayer(playerid, Textdraw0);
			TextDrawShowForPlayer(playerid, Textdraw1);
			TextDrawShowForPlayer(playerid, Textdraw2);
			TextDrawShowForPlayer(playerid, Textdraw3);
			TextDrawShowForPlayer(playerid, Textdraw4);
			SelectTextDraw(playerid, CERVENA);
		
  			} else {


			TextDrawShowForPlayer(playerid, Textdraw0);
			TextDrawShowForPlayer(playerid, Textdraw1);
			TextDrawShowForPlayer(playerid, Textdraw2);
			TextDrawShowForPlayer(playerid, Textdraw3);
			TextDrawShowForPlayer(playerid, Textdraw4);
			SelectTextDraw(playerid, CERVENA);
		

	}
	}
	
	
return 1;
}
Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

Tímto mu to zabrániš 

public OnPlayerRequestSpawn(playerid) return false;

A potom ho spawneš pomocou

SpawnPlayer(playerid);
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0
Matess: Hovadina. NEJDŘÍVE se vykoná SCM() a POTÉ teprve kick(), takže nevím, k čemu je timer potřeba. Kdyby to bylo naopak, tak ho to kickne, ukončí spojení a pak se mu to pokusí odeslat zprávu, která mu nemůže přijít
Link to comment
Share on other sites

  • 0

Ajo, už to vidím:

http://wiki.sa-mp.com/wiki/Kick

As of SA-MP 0.3x, any action taken directly before Kick() (such as sending a message with SendClientMessage) will not reach the player. A timer must be used to delay the kick.
No jo, jsem odchovanej na 03b :d
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...