Jump to content
  • 0

pomoc SPAWN - PRIHLSENIE, REGISTRACIA


marekK50

Dotaz

Zdravím, kde je tu prosím vás chyba ? Keď nie som prrihlasený/ registrovaný a kliknem na spawn, tak ma to pusti a až potom v chate vypíše text, čomám v SCM

 

 

public OnPlayerRequestSpawn(playerid)

 

 

{

if (login[playerid] == 0) {

SCM (playerid, oranzova, "niesi prihlaseny! Prihlas sa, /login heslo alebo sa zare");

 

 

}

if (register[playerid] == 0)

{

SCM (playerid, oranzova, "niesi registrovaný! Registruj sa: /register heslo");

 

 

}

else if (login[playerid] == 1)

{

 

 

}

else if (register[playerid] == 1)

{

SpawnPlayer (playerid);

} else if (login[playerid] == 1) {

SetPlayerPos (playerid, -1554.2188,1167.3402,7.1875);

}

return 1;

}

 

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

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...