SA-MP Forums Archive
how to give player money scirpt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to give player money scirpt (/showthread.php?tid=259114)



how to give player money scirpt - handerson - 03.06.2011

i have gm,

how to make script in my GM if players spawn for new member (so just for once, at the first time he registered), they will get 50000..

i put onplayerspawn

giveplayermoney(playerid, 50000)

when i spawn it always gime 50000,

i want to make them just for once, at the first time when they register )

pls help me


Re: how to give player money scirpt - kin - 03.06.2011

Go to the OnPlayerConnect callback, you should see somehting related to
pawn Код:
if(!fexist(file))
In that if statement, you would put
pawn Код:
GivePlayerMoney(playerid,50000);


Did this help you?


Re: how to give player money scirpt - handerson - 03.06.2011

Quote:
Originally Posted by kin
Посмотреть сообщение
Go to the OnPlayerConnect callback, you should see somehting related to
pawn Код:
if(!fexist(file))
In that if statement, you would put
pawn Код:
GivePlayerMoney(playerid,50000);


Did this help you?
undefined symbile file

?