Jump to content
  • 0

pomoc [Help] SpawnPlayer(playerid);


Your_Monkey

Dotaz

6 odpovědí na tuto otázku

Recommended Posts

  • 0

No chyba to nepíše, ale nefunguje to :(

 

public OnPlayerLogin(playerid, heslo[])

{

if(IsPlayerConnected(playerid))

{

if(strlen(heslo) == 0) return ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Přihlášení", "Aby jsi se přihlásil, musíš zadat svoje heslo!!!", "Přihlásit", "Odpojit");

if(strcmp(dini_Get(file[playerid], "Heslo"), heslo, true) == 0)

{

IsLogged[playerid] = true;

SendClientMessage(playerid, 0xFFFFFFFF, "[ ! ] Byl jsi úspěšně {00D200}přihlášený {FFFFFF}!");// světle modrá

SpawnPlayer(playerid);

 

GivePlayerMoney(playerid, dini_Int(file[playerid], "Money"));

Povolani[playerid] = dini_Int(file[playerid], "Povolani");

 

} else {

 

ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Přihlášení", "Nesprávné heslo!!!", "Přihlásit", "Odpojit");

}

}

return 1;

}

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