• 04 Mai 2025, 03:05:44


Auteur Sujet: [Besoin d'aide ] Map d'eplacement des Biz {Resolue}  (Lu 1534 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne serdar95

  • *
  • Criminel
  • Messages: 37
    • Voir le profil
Re : [Besoin d'aide ]
« Réponse #15 le: 12 Septembre 2009, 16:05:52 »
reu j'ai trouvé ceci  :


CreateObject(2942,603.724440,-1248.348330,18.435990,0.000000,0.000000,179.674255); //bankatm(old bank location)
//ou bien celui si
AddStaticPickup(1254, 2, 2230.3579,-2286.2107,14.3751); // Materials bank


//----------------------------------[Bank System]-----------------------------------------------
    if(strcmp(cmd, "/withdraw", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pLocal] == 103 || PlayerToPoint(1.5, playerid, 1346.5016,-1758.7649,13.5156) || PlayerToPoint(1.5, playerid, 1592.7152,-2335.3748,13.5400) || PlayerToPoint(1.5, playerid, 2308.4612,-1634.4176,14.8270) || PlayerToPoint(1.5, playerid, 2865.9014,-1415.4203,11.0061) || PlayerToPoint(1.5, playerid, 2404.5913,-1229.8973,23.8301) || PlayerToPoint(1.5, playerid, 1172.5912,-1328.4365,15.4034))
        {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /withdraw [amount]");
format(string, sizeof(string), "  You Have $%d in your account.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /withdraw [amount]");
format(string, sizeof(string), "  You Have $%d in your account.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "   You dont have that much !");
return 1;
}
    //ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
format(string, sizeof(string), "  You Have Withdrawn $%d from your account Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   You are not at the Bank !");
            return 1;
}
}
return 1;
}
if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pLocal] != 103)
        {
            SendClientMessage(playerid, COLOR_GREY, "   You are not at the Bank !");
            return 1;
        }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank [amount]");
format(string, sizeof(string), "  You Have $%d in your account.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank [amount]");
format(string, sizeof(string), "  You Have $%d in your account.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "   You dont have that much");
return 1;
}
SafeGivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo[playerid][pAccount];
PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), "  Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), "  Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), "  New Balance: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
if(strcmp(cmd, "/balance", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerInfo[playerid][pLocal] == 103 || PlayerToPoint(1.5, playerid, 1346.5016,-1758.7649,13.5156) || PlayerToPoint(1.5, playerid, 1592.7152,-2335.3748,13.5400) || PlayerToPoint(1.5, playerid, 2308.4612,-1634.4176,14.8270) || PlayerToPoint(1.5, playerid, 2865.9014,-1415.4203,11.0061) || PlayerToPoint(1.5, playerid, 2404.5913,-1229.8973,23.8301) || PlayerToPoint(1.5, playerid, 1172.5912,-1328.4365,15.4034))
        {
format(string, sizeof(string), "  You Have $%d in your account.",PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   You are not at the Bank !");
            return 1;
}

Double post
dsl mais UP svp car j'ai plus de réponse
« Modifié: 12 Septembre 2009, 17:45:51 par serdar95 »

Hors ligne FuSion

  • Pawn coder
  • *
  • Grand Banditisme
  • for(new i = 0; i < INFINI; i++)
  • Messages: 888
    • Voir le profil
Re : [Besoin d'aide ]
« Réponse #16 le: 12 Septembre 2009, 18:06:15 »
Tes lignes n'ont aucun rapport avec le prix de la banque, il me semble dans bizz.cfg il y'a la ligne suivante :
Citer
1|The State|~w~City Bank|No-one|1462.395751|-1012.391174|26.843799|2305.688964|-16.088100|26.749599|5|5000000|0|0|0|0|99991|100000|1

Essaye de trouver le prix qui est de 0$, et modifie le par le chiffre que tu veux  ;)

++
FS'

Hors ligne serdar95

  • *
  • Criminel
  • Messages: 37
    • Voir le profil
Re : [Besoin d'aide ]
« Réponse #17 le: 12 Septembre 2009, 22:08:26 »
Merci pour ta reponse ;

Mes moi je veux pas metre un prix mais je veux déplacer la banq je modifie les ligne x/y/z ensuite je reboot mais rien ce passe je ne vois pas le /enter dans la nouvelles banque et l'anciene banque existe plus ce qui prouve donc que j'ai réussi a le déplacer

Double post
Bonjour j'ai l'honneur de vous annoncer que j'ai reglé mon problème mdr c'était tout con enfaite
( pour ce qu'il son des noobs comme moi je vous explique en détaille comment faire )


Connecter vous IG ( In Game ) ensuite taper /biz [ nombre  ]  moi sa part jusqu'à 4  donc exemple taper /biz 1 sa vous ramener au Gunshop (exemple) ensuite écrivais le sur une feuille 1=Amunation ainsi de suite ...
2=Bar
3=armour flic ( plus précieusement SWAT )
4=Bank
[sa c pour moi je pense on a pas les même biz identique avec le même ID ]
Moi mon problème etais la bank donc j'ai déplacer la banq en fesant /bizentrance [ID du biz ] le Id du biz vous l'avais grace a /biz voila je ces pas si c'est bien expliquer mais j'espere avoire aidé quelque personne


Merci a tous se qu'il mon répondu pour m'aide c'est grave sympa ciao  :angelnot
« Modifié: 13 Septembre 2009, 06:30:10 par serdar95 »