Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

as vrea sa imi faceti si mie un bizz ad atunci cand te duci in picupu lui si scri /ad si textu sa se vada pe tot sv as vrea sa fie aici  AddPlayerClass(265,3540.1040,-1877.6042,5.6957,276.4066,0,0,0,0,0,0); //

2 answers to this question

Recommended Posts

Posted

Tiam facut eu comanda uite aici ....

if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)

{

    if(PlayerToPoint(3.0, playerid, 3540.1040,-1877.6042,5.6957))

    {

    if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "Nu sunteti logat anca !");

            return 1;

        }

        if(PlayerInfo[playerid][pLevel] < 3)

        {

        SendClientMessage(playerid, 0x4FA7FFFF, "*** Nu ai level 3 pentru a da /ad");

            return 1;

        }

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

new length = strlen(cmdtext);

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

{

idx++;

}

new offset = idx;

new result[64];

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

{

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

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/ad)vertise [advert text]");

return 1;

}

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

{

format(string, sizeof(string), "  Va rugam sa încercati din nou mai târziu peste %d secunde între Publicitate !",  (addtimer/1000));

SendClientMessage(playerid, COLOR_GRAD2, string);

return 1;

}

new payout = idx * 25;

if(GetPlayerMoney(playerid) < payout)

        {

            format(string, sizeof(string), "* Ai folosit %d caractere care a costat $%d, nu aveti suficient.", offset, payout);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            return 1;

        }

GivePlayerMoney(playerid, - payout);

SBizzInfo[7][sbTill] += payout;

ExtortionSBiz(7, payout);

format(string, sizeof(string), "[Advertisement]: %s, Contact: %s Ph: %d",  result, sendername,PlayerInfo[playerid][pPnumber]);

OOCNews(TEAM_GROVE_COLOR,string);

format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx);

GameTextForPlayer(playerid, string, 5000, 5);

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

}

    }

    return 1;

}

i0418xcttya707ofg.jpg

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.