(pomoc) Komanda /buymats radi problem

Započeo Bobo
27. Jun 2012. Zaključano
180
pregleda
4
postova
dogy
4
Enforcer
27. Jun 2012.
Skripta koju koristim:Ravens
Detaljan opis problema:Kada upisem /buymats 10 skine mi novce sto je uredu kada upisem /buymats -10 onda mi dodaje novce i puni matse u biznisu.kako to rijesiti.da nemogu /buymats -10 pokusao sam sve i neide.
Dio skripte:
Quote
if(strcmp(cmd,"/buymats",true)==0) // By LordMan
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");
return 1;
}
if(PlayerInfo != 23)
{
SendClientMessage(playerid, COLOR_GREY, "  You are not a gun maker. ");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 2, 2230.3579,-2286.2107,14.3751))
{
SendClientMessage(playerid, COLOR_GREY, "  You are not at the materials bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buymats ");
return 1;
}
new mammount;
mammount = strval(tmp);
if(mammount > matssys)
{
SendClientMessage(playerid, COLOR_GREY, "  They don't have enough materials ! ");
return 1;
}
if(GetPlayerMoney(playerid) < mammount * 15 - 1)
{
SendClientMessage(playerid, COLOR_GREY, "  You don't have enough money ! ");
return 1;
}
if (GetPlayerMoney(playerid) > ScriptMoney)
{
    format(string, sizeof(string), ": %s (%d) Is possibly Using Money Hacks; Check him inmediately!!", sendername,playerid);
SendAdminMessage(COLOR_YELLOW, string);
PlayerSuspicious = 1;
PlayerMoneyHacking = 1;
PlayerSuspiciousMoney = (GetPlayerMoney(playerid) - ScriptMoney);
PlayerGotSpottedRecently = 1;
SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid);
    SendClientMessage(playerid, COLOR_CREAM, "* Transaction Stopped, you're probably on a cash inbalance, contact an administrator.");
    return 1;
}
matssys -= mammount;
PlayerInfo += mammount;
SafeGivePlayerMoney(playerid, - mammount * 15);
format(string, sizeof(string), "  You have bought %d materials for %d$ !", mammount, mammount * 15);
SendClientMessage(playerid, COLOR_GREY, string);
SaveMatsSystem();
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /buymats %d ($%d)",d,m,y,h,mi,s,sendername, mammount, mammount * 15);
CommandLog(string);
return 1;
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Deleted User
Obrisan korisnik
27. Jun 2012.
if(mammount < 0)
{
        SendClientMessage(playerid, COLOR_GREY, "  Ne moze manje od nule. ");
        return 1;
}


Dodaj to.
barbarosa
4
Shot Caller
27. Jun 2012.
krivo postano brisi post
dogy
4
Enforcer
27. Jun 2012.
Hvala Plavsa.Moze lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha