People requesting to join an org
#1

Hey dudes, well I'm creating a roleplay server but I noticed that players could /request to join an org despite the leader not being on.. They couldn't join it but it sends a message to everyone saying "Playername is requesting to join the San Andreas Police Department".

So I thought I would make it so if the leader is not online it would send them a message saying "The leader is not online"... but I can't seem to get it working, heres the code.

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
      if(!IsPlayerConnected(i))
      {
           if(PlayerInfo[i][Leader] == (( ORG ID )) )
           {
             SendClientMessage(playerid, COLOR, "The leader of this organization is currently not online");
             return 1;
           }
      }
}
Yes I use dini & I feel its something to do with the "IsPlayerConnected", Thanks in advanced.
Reply


Messages In This Thread
People requesting to join an org - by LiamM - 28.11.2011, 19:14
Re: People requesting to join an org - by IceCube! - 28.11.2011, 19:16
Re: People requesting to join an org - by LiamM - 28.11.2011, 19:30
Re: People requesting to join an org - by IceCube! - 28.11.2011, 19:34
Re: People requesting to join an org - by LiamM - 01.12.2011, 15:22
Re: People requesting to join an org - by park4bmx - 01.12.2011, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)