[Ajuda] onplayertext
#2

pawn Код:
// Topo GM
#define MaxPlayers 50 // mude para a qnt de slots do seu servidor
new sPlayerLogado[MaxPlayers];
pawn Код:
// Sua Login Box
sPlayerLogado[playerid] = 1;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
      if(sPlayerLogado[playerid] == 0) return SendClientMessage(playerid, -1, "Precisa logar pra usar comandos!");
      // comandos...
      return 0;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
      if(sPlayerLogado[playerid] == 0) return SendClientMessage(playerid, -1, "Precisa logar pra usar comandos!");
      return 0;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
      sPlayerLogado[playerid] = 0;
      return 1;
}
pawn Код:
public OnGameModeExit()
{
      for(new i=0; i < MaxPlayers; i++)
      {
          sPlayerLogado[i] = 0;
      }
      return 1;
}
Reply


Messages In This Thread
[Ajuda] onplayertext - by JFT - 19.09.2011, 02:31
Re: [Ajuda] onplayertext - by Macintosh - 19.09.2011, 03:11
Re: [Ajuda] onplayertext - by JFT - 19.09.2011, 03:22
Re: [Ajuda] onplayertext - by Macintosh - 19.09.2011, 03:29
Re: [Ajuda] onplayertext - by JFT - 19.09.2011, 16:34
Re: [Ajuda] onplayertext - by Nake01 - 19.09.2011, 17:41
Re: [Ajuda] onplayertext - by JFT - 20.09.2011, 01:37

Forum Jump:


Users browsing this thread: 1 Guest(s)