Nothing special
#1

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
Reply
#2

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..
Reply
#3

oh thanks so much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)