What is wrong with this ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is wrong with this ? (
/showthread.php?tid=181874)
What is wrong with this ? -
Tekto - 07.10.2010
OnPlayerConnect
Код:
if(AccountExists[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] > 0) {
SendClientMessage(playerid, COLOR_YELLOW, "[Note]: You have 20 seconds, to login."); SetTimerEx("LogiSisse", 20000, false, "i", playerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "This account is registred, please login. [/login]"); }
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "Please insert password to login", "Login", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "This account isn't registred, please register. [/register]");
ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "Register", "Please insert password to register an account", "Register", "Cancel");
}
return 1;
}
Код:
public LogiSisse(playerid)
{
if(PlayerInfo[playerid][pAdmin] > 0 && PlayerInfo[playerid][pLogged] == 0) {
Kick(playerid);
}
return true;
}
Re: What is wrong with this ? -
Mike_Peterson - 07.10.2010
You could ofcourse just tell us what the error is -.-
Re: What is wrong with this ? -
Tekto - 07.10.2010
There are no errors, it just doesnt send that note and doesnt kick.
Re: What is wrong with this ? -
Tekto - 08.10.2010
bUMP MY POST