Jump to content
  • 0

probleme /ban


preda_tor95

Question

puteti sa imi spuneti si mie cei cu aceasta comanda?

/*public BanAdd(bantype, sqlplayerid, ip[], hackamount)

{

new query[128];

format(query, sizeof(query), "INSERT INTO bans (type,player,ip,time,amount) VALUES ('%d',%d,'%s',UNIX_TIMESTAMP(),%d)", bantype,sqlplayerid,ip,hackamount);

samp_mysql_query(query);

return 1;

}*/

-=-=-------------------------------

/*if(Mobile[playerid] == 1180)

{

    if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: What would you like to advertise?");

return 0;

}

GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(text);

while ((idx < length) && (text[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[64];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = text[idx];

idx++;

}

result[idx - offset] = EOS;

if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))

{

format(string, sizeof(string), "  Please try again later %d seconds between Advertisements !",  (addtimer/1000));

SendClientMessage(playerid, COLOR_GRAD2, string);

return 1;

}

new payout = idx * 10;

if(GetPlayerMoney(playerid) < payout + 200)

        {

            format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            return 1;

        }

        SafeGivePlayerMoney(playerid, - payout);

        SafeGivePlayerMoney(playerid, - 200);

SBizzInfo[7][sbTill] += payout + 200;

ExtortionSBiz(7, payout + 200);

format(string, sizeof(string), "[Advert] %s, Phone: %d",  result, PlayerInfo[playerid][pPnumber]);

OOCNews(TEAM_GROVE_COLOR,string);

format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters~n~~w~Plus ~g~200$~w~ for ad through phone", payout, idx);

GameTextForPlayer(playerid, string, 5000, 1);

if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}

}*/

Ca nu gasesc comanda cu care se da ban..daca se poate sa imi ziceti pt ce is aceste 2 comenzi,sau ce is..

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.