#1

public OnPlayerRequestSpawn(playerid)
{
if(AccountInfo[playerid][Logged] == 0) return SendClientMessage(playerid, RED, "You must be logged in to spawn.try ist later!");
Kick(playerid);
return 1;
}

i want to kick the player how don t logged in but that dont work
there only comes "You must be logged in to spawn.try ist later"
i have the seif admin
can anybody help me thanks
and sorry for my bad english
Reply
#2

pawn Код:
if(AccountInfo[playerid][Logged] == 0) {
SendClientMessage(playerid, RED, "You must be logged in to spawn.try ist later!");
Kick(playerid);
}
Reply
#3

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(AccountInfo[playerid][Logged] == 0)
  {
    SendClientMessage(playerid, RED, "You must be logged in to spawn.try ist later!");
    Kick(playerid);
    return 0;
  }
  return 1;
}
Reply
#4

Or much shorter.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(AccountInfo[playerid][Logged] == 0) return SendClientMessage(playerid, RED, "You must be logged in to spawn.try ist later!"), Kick(playerid), 0;
    return 1;
}
Reply
#5

Quote:
Originally Posted by » RyDeR «
Or much shorter.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(AccountInfo[playerid][Logged] == 0) return SendClientMessage(playerid, RED, "You must be logged in to spawn.try ist later!"), Kick(playerid), 0;
   return 1;
}
Wow i never knew you could use commas,
Thats why i either use seperate functions or what i posted above
Reply
#6

thanks for help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)