playermoney on spawn?
#1

Hi guys i have a little problem.In my game mode i have inserted the money at spawn.

But i want the script give the money ONLY the first time the player spawn..how to risolve?Thanks.
Reply
#2

pawn Код:
/* At the top of your mode */
new receivedMoney[MAX_PLAYERS];

/*To OnPlayerConnect */
receivedMoney[playerid] = 0;

/*When giving the money */
if(receivedMoney[playerid] == 0)
{
  //give the money
  receivedMoney[playerid] = 1;
}
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)