SA-MP Forums Archive
playermoney on spawn? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: playermoney on spawn? (/showthread.php?tid=125313)



playermoney on spawn? - Face9000 - 03.02.2010

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.


Re: playermoney on spawn? - ettans - 03.02.2010

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;
}



Re: playermoney on spawn? - Face9000 - 03.02.2010

Thanks