[closed]Thnx for helping me. - 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: [closed]Thnx for helping me. (
/showthread.php?tid=156026)
[closed]Thnx for helping me. -
marnickx - 20.06.2010
Hello how i give people money when they are for the first time logged in and if thet are coming back later that they still have the money
plz help me.
gr marnick
Re: [help]How to give people money when they are logged in?only 1 time -
Hiddos - 20.06.2010
If you mean give them money after they register?
Just automatically log em in from your register area and give them the money.
Re: [help]How to give people money when they are logged in?only 1 time -
marnickx - 20.06.2010
yea after they registerd that the only get once money automaticly
Re: [help]How to give people money when they are logged in?only 1 time -
Hiddos - 20.06.2010
pawn Код:
OnPlayerRegister(blablabla)
{
.....
//end of code:
GivePlayerMoney(playerid,5000); //Gives 5000 when the player registers
return 1;
Obviously you can't register more then once.
Re: [help]How to give people money when they are logged in?only 1 time -
marnickx - 20.06.2010
k thnx ill try it out ehm where can i find OnPlayerRegister
Re: [help]How to give people money when they are logged in?only 1 time -
Biscottinis - 20.06.2010
What admin system you're using?
Re: [help]How to give people money when they are logged in?only 1 time -
marnickx - 21.06.2010
ehm none yet im trying to find a little bit basic one that has a pwn are is on pastebin/solidfiel and stuff found 1 basic but there were line nrs
Re: [help]How to give people money when they are logged in?only 1 time -
titanak - 21.06.2010
Use some admin system like Lethal admin script there is very easy to make this.
Re: [help]How to give people money when they are logged in?only 1 time -
marnickx - 21.06.2010
thnx ill search it and then ill try it
Re: [help]How to give people money when they are logged in?only 1 time -
marnickx - 21.06.2010
ok i got it and ehm i could chage this?
Код:
dini_Set(file,"RegisteredDate",strdate);
dUserSetINT(PlayerName2(playerid)).("loggedin",1);
dUserSetINT(PlayerName2(playerid)).("banned",0);
dUserSetINT(PlayerName2(playerid)).("level",0);
dUserSetINT(PlayerName2(playerid)).("LastOn",0);
dUserSetINT(PlayerName2(playerid)).("money",0);
dUserSetINT(PlayerName2(playerid)).("kills",0);
dUserSetINT(PlayerName2(playerid)).("deaths",0);
and then change the "money",0); to "money",here amount);