03.12.2010, 18:35
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 :
What have I done wrong ?
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;
}