Nothing special - 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)
+--- Thread: Nothing special (
/showthread.php?tid=640957)
Nothing special -
n00blek - 09.09.2017
well i made this:
http://prntscr.com/gj10j2
and i realized everytime i join server i get $2000 more
Question is: where do i put this command GivePlayerMoney(i made login register too
https://pastebin.com/71jxipHL)
i am new to scripting so i dont know much. my idea is when someone registeres it gives him money.
sorry if i am rude but can someone write code on line that i should put this command
Re: Nothing special -
JasonRiggs - 09.09.2017
You are just making it like that,Whenever the player spawns, Set his skin to 26, Give him 2000 cash, WHENEVER he spawns, not only on register, Go to case DIALOG_REGISTER under OnPlayerDialogResponse and edit this part
PHP код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Bankmoney",0);
INI_WriteInt(File,"Banned",0);
INI_WriteInt(File,"Org",-1);
INI_WriteInt(File,"Rank",0);
INI_Close(File);
and remove the "0" beside "cash" and set it to 2000, That's all I believe..
Re: Nothing special -
n00blek - 09.09.2017
oh thanks so much.