Help me please.
#8

Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Try doing this with any script

At the top put

pawn Код:
new Logged[MAX_PLAYERS]
under OnPlayerSpawn put

pawn Код:
if(Logged[playerid] != 1) return SendClientMessage(playerid, 0xFF0000FF, "You need to login or register before spawning !");
{
return 1;
}
On The /login command find a place and put

pawn Код:
Logged[playerid] =true; //This is the thing that will allow the player to spawn if he is logged in.

Try that, if you get any errors, post them here and I will try and help correct them.
Why not ..

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(xInfo[playerid][xLogged] == 0)
  {
     GameTextForPlayer(playerid,"~r~Log in or register before spawning!",5000,1);
     return 0;
  }
return 1;
}
That is what I use .. works fine.
Reply


Messages In This Thread
Help me please. - by Pinehole - 30.09.2009, 00:14
Re: Help me please. - by legendario - 30.09.2009, 00:15
Re: Help me please. - by Pinehole - 30.09.2009, 00:33
Re: Help me please. - by Hiitch - 30.09.2009, 00:52
Re: Help me please. - by Pinehole - 30.09.2009, 00:58
Re: Help me please. - by Hiitch - 30.09.2009, 00:59
Re: Help me please. - by Pinehole - 30.09.2009, 01:04
Re: Help me please. - by ded - 30.09.2009, 01:06
Re: Help me please. - by Pinehole - 30.09.2009, 01:34
Re: Help me please. - by ded - 30.09.2009, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)