[HELP] /Login command ! - 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: [HELP] /Login command ! (
/showthread.php?tid=195756)
[HELP] /Login command ! -
[Aka]Dragonu - 03.12.2010
I made something that if i put myself level 1338 admin to appear : %s the owner of the server has logged in , but it is bugged because the message doesn't appear and it teleports me in a village . The command gives no errors !
Command :
pawn Код:
if (strcmp(cmd, "/login", true) ==0)
{
new tmppass[64];
if (PlayerLoggedIn[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Server : That nickname is already logged in.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /login [password]");
return 1;
}
strmid(tmppass, tmp, false, strlen(cmdtext), 32);
LoginPlayer(playerid, tmp);
if(PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pAdmin] != 1348){
SendClientMessageToAll(COLOR_RED, "*** %s the owner of server has logged in. ***");
}
return 1;
}
What have I done wrong ?
Re: [HELP] /Login command ! -
[Aka]Dragonu - 03.12.2010
BUMP !!!!
Re: [HELP] /Login command ! -
[Aka]Dragonu - 04.12.2010
BUMP !!!
Re: [HELP] /Login command ! -
dice7 - 04.12.2010
Something's wrong with your LoginPlayer() function