*** This topic title is not descriptive - ******
#5

Outside a callback
pawn Код:
new alreadysentmessage[MAX_PLAYERS];
here it is(paste it in onplayerupdate only)
pawn Код:
if(PlayerInfo[playerid][pCash] < 0)
{
     if(alreadysentmessage[playerid] == 0)
     {
     SendClientMessage(playerid, -1, "LAWL!!you are in debt :P");
     for(new i=0;i<MAX_PLAYERS;i++;)
     {
          if(IsPlayerAdmin(i))
          {
                 new string[100];
                 format(string, sizeof(string), "Player %d is in a debt of %d", playerid, PlayerInfo[playerid][pCash]);
                 SendClientMessage(i, -1, string);
                 
          }
      }
      }
      alreadysentmessage[playerid] = 1;
     return 1;
}
Reply


Messages In This Thread
*** This topic title is not descriptive - ****** - by Zachlive - 08.11.2012, 04:32
Re: Two quick questions. - by [HK]Ryder[AN] - 08.11.2012, 04:49
Re: Two quick questions. - by Glad2BeHere - 08.11.2012, 05:11
Re: Two quick questions. - by Zachlive - 08.11.2012, 05:42
Re: Two quick questions. - by [HK]Ryder[AN] - 08.11.2012, 06:21
Re: Two quick questions. - by Glad2BeHere - 08.11.2012, 06:23
Re: Two quick questions. - by [HK]Ryder[AN] - 08.11.2012, 06:24
Re: Two quick questions. - by Glad2BeHere - 08.11.2012, 06:27
Re: Two quick questions. - by [HK]Ryder[AN] - 08.11.2012, 06:30
AW: Two quick questions. - by xerox8521 - 08.11.2012, 06:47

Forum Jump:


Users browsing this thread: 1 Guest(s)