Jump to content
  • 0

pomoc Zrušení Výběru Skinu


DmG

Dotaz

Zdar,

potřeboval bych poradit ohledně výběru skinu

Chci aby když je hráč registrován tak aby se mu neukazoval výběr skinu ale rovnou ho Spawnul

Zkoušel jsem to takhle

public OnPlayerRequestClass(playerid, classid)
{
if(PlayerInfo[playerid][reg] == 1) return SpawnPlayer(playerid);
{
SetPlayerPos(playerid, -688.7404,1455.7004,17.3274,90.1677);
SetPlayerCameraPos(playerid, -641.5891,1459.9904,13.4806,88.6010);
SetPlayerCameraLookAt(playerid, -688.7404,1455.7004,17.3274,90.1677);
}
return 1;
}

Zkoušel jsem ještě asi 3 způsoby

SpawnPlayer jsem dal pod závorku a bez return za if(PlayerInfo[playerid][reg] == 1)

Zkoušel jsem to s else ale nic

Ale nešlo to :(

tak bych se chtěl zeptat jak to můžu udělat tak že když je už registrovaný tak aby mu to neukazovalo Výběr Skinu ale přímo ho to hodilo na Spawn?

 

Dík předem :):help:

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

zkus:

public OnPlayerRequestClass(playerid, classid)
{
if(PlayerInfo[playerid][reg] == 1) return SpawnPlayer(playerid);
 SpawnPlayer(playerid);
  return 1;
}

nebo

public OnPlayerConnect(playerid)
{
if(PlayerInfo[playerid][reg] == 1) return SpawnPlayer(playerid);
 SpawnPlayer(playerid);
  return 1;
}

Link to comment
Share on other sites

  • 0

Ok díky všichni zkusím :)

 

 

EDIT: Protože jsem se až dneska dostal doma ke kompu :d A vyzkoušel jsem všechno pořád mi nic nejde :( Nemáte prosím ještě někdo nějaký nápad? :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...