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");
Dotaz
marekK50 0
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 accountSign in
Already have an account? Sign in here.
Sign In Now