Jump to content
  • 0

pomoc Povinna registrace aneb nece ma to kopnut do hry


Romop5

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0

ja to mel v modu takto,

 

if (!PLAYERLIST_authed[playerid]) {
if(udb_Exists(PlayerName(playerid))) {
SendClientMessage(playerid, COLOR_FLBLUE, "===> Než začneš hrát, tak se prosím přihlaš /login [heslo] <===");
}else{
SendClientMessage(playerid, COLOR_FLBLUE, "===> Než začneš hrát, tak se prosím zaregistruj /register [heslo] <===");
}
return 0;
}

 

a slo to bez problemu

Link to comment
Share on other sites

  • 0
public OnPlayerRequestSpawn(playerid)
{
{
  if (!PLAYERLIST_authed[playerid]) {
     if(udb_Exists(PlayerName(playerid))) {
       GameTextForPlayer(playerid,"~w~Prihlas se!",5000,5);
       	SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nejsi prihlaseny, napiš /login heslo");
     }else{
        GameTextForPlayer(playerid,"~w~Registruj se!",5000,5);
        SendClientMessage(playerid,COLOR_LIGHTGREEN, "Nejsi registrovany, napis /register heslo");
     }
  return 0;
  }
  return 1;
}
}

Hej vy kanci, tak sem sem jednou zas zavital :d takto to ma byt ;)

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