A Bank System with no login needed - 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: A Bank System with no login needed (
/showthread.php?tid=73718)
A Bank System with no login needed -
aspire5630 - 17.04.2009
hi, i need a bank system, but i need it so their is no login /register
cause i have a admin script
![Cheesy](images/smilies/biggrin.png)
which already takes over /login /register
anyone help?.
Re: A Bank System with no login needed -
Sean12 - 17.04.2009
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;
}
Re: A Bank System with no login needed -
Sean12 - 17.04.2009
No creadit by me.
Re: A Bank System with no login needed -
aspire5630 - 17.04.2009
Quote:
Originally Posted by Sean12
No creadit by me.
|
That doesent have /deposit /withdraw
Re: A Bank System with no login needed -
aspire5630 - 19.04.2009
Quote:
Originally Posted by Sean12
No creadit by me.
|
i already have a payday, its a bank system i need
to deposit money .etc
Re: A Bank System with no login needed -
Francis[French] - 19.04.2009
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