ClientMessage only once
#8

Victious, if the spawn will succeed it will send this message at the same time he is spawning.

For BlackWolf, I tried to evade that variable idea.. But here you go.

At the top of your script:
pawn Код:
new IsSpawned[MAX_PLAYERS];
Then, at OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
     if(IsSpawned[playerid] == 0)
     {
          SendClientMessage(playerid, COLOR_WHITE, "You have logged in!");
          IsSpawned[playerid] = 1;
          return 1;
      } else if(IsSpawned[playerid] == 1)
      {
          return 1;
      }
return 1;
}
at OnPlayerConnect:
pawn Код:
public OnPlayerConnect(playerid)
{
   IsLogged[playerid] = 0;
   return 1;
}
Reply


Messages In This Thread
ClientMessage only once - by BlackWolf120 - 17.12.2010, 19:41
Re: ClientMessage only once - by Biesmen - 17.12.2010, 19:42
Re: ClientMessage only once - by BlackWolf120 - 17.12.2010, 19:49
Re: ClientMessage only once - by Biesmen - 17.12.2010, 19:51
Re: ClientMessage only once - by BlackWolf120 - 17.12.2010, 19:53
Re: ClientMessage only once - by WillyP - 17.12.2010, 19:53
Re: ClientMessage only once - by BlackWolf120 - 17.12.2010, 19:56
Re: ClientMessage only once - by Biesmen - 17.12.2010, 20:02
AW: ClientMessage only once - by BigETI - 19.12.2010, 01:21

Forum Jump:


Users browsing this thread: 2 Guest(s)