Question
#1

Can i do something that will check if player is logged, because now i can use commands before i log-in.
Is there anythig that will automatically check that if player for example

LoggedOn[playerid] == 0; if player is not logged in he can't use the command.
Reply
#2

PHP код:
OnPlayerRequestSpawn(playerid)
{
  {
  if(
IsPlayerLoggedIn[playerid] == 0);
 
   
//Then add your Stuff you want to check here ..
     
}
    return 
0;
  }
  return 
1;

Reply
#3

I know that, i want to create something that will prevent players from using commands like /kick /ban or even normal messages before login.
Reply
#4

pawn Код:
CMD:whatever(playerid, params[])
{
    if(LoggedOn[playerid == 0) return SendClientMessage(playerid, -1, "You are not logged in!");
    //do something
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)