A Bank System with no login needed
#1

hi, i need a bank system, but i need it so their is no login /register
cause i have a admin script which already takes over /login /register
anyone help?.
Reply
#2

ON TOP OF YOUR SCRIPT:
Код:
new CheckNumber[MAX_PLAYERS];
forward PayDay();
Код:
public PayDay();
{
  new string[128];
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      CheckNumber[i] = 1000+random(8999);
      format(string, 128, "To receive your payday-money, please type: \"sighcheck %d\"", CheckNumber[i]);
      SendClientMessage(playerid, 0x00FF00AA, string);
    }
  }
}
OnPlayerCommandText - callback:
Код:
if(strcmp(cmdtext, "/signcheck", 10)==0)
{
  if(!strlen(cmdtext[11]))
  {
    SendClientMessage(playerid, 0xFF0000AA, "Use: /signcheck [checknumber]");
    return 1;
  }
  new number = strval(cmdtext[11]);
  if(number == CheckNumber[playerid])
  {
    SendClientMessage(playerid, 0x00FF00AA, "You received your money!");
    GivePlayerMoney(playerid, ENTER_HERE_THE_AMOUNT!!);
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "Wrong checknumber!");
  }
  return 1;
}
Reply
#3

No creadit by me.
Reply
#4

Quote:
Originally Posted by Sean12
No creadit by me.
That doesent have /deposit /withdraw

Reply
#5

Quote:
Originally Posted by Sean12
No creadit by me.
i already have a payday, its a bank system i need
to deposit money .etc
Reply
#6

Hi there,

There are a few scripts available in the Scripts Showroom. Use the search function.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)