[HELP] How iґm can make a graphical menu for ATM?
#1

Hi all, iґm have a ATM script and iґm would like have a menu for the atm. How iґm can made it? (PS: iґm noewbie)

Here is the script:

//-------------------------------[ ATM ]---------------------------------------------------
if(strcmp(cmd, "/atmwithdraw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!AtATM(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Du bist nicht an einem ATM !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /atmwithdraw [betrag]");
format(string, sizeof(string), " Du hast $%d auf deinem Konto.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /atmwithdraw [betrag]");
format(string, sizeof(string), " Du hast $%d auf deinem Konto.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Du hast nicht soviel Geld !");
return 1;
}
ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
format(string, sizeof(string), "Du hast %d$ von deinem Konto abgehoben. Kontostand: %d$ ", cashdeposit,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)