Jump to content
  • 0

cum ca ad sa fie la CNN?


Otiy

Question

cum ca ad sa fie la CNN sa fie setat de proprietar setat cat e pretul la ad si altele.

codul este

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

{

    if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");

            return 1;

        }

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

        {

            SendClientMessage(playerid, COLOR_GREY, "  You have to be level 3 to use this function !");

            return 1;

        }

        if(!IsAtADPlace(playerid))

        {

            SendClientMessage(playerid, COLOR_GREY, "  You are not at CNN Studio !");

            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++;

}

for(new i=0; i<MAX_PLAYERS; i++)

if(FindIP(result)) ///

{

  new advertiser[MAX_PLAYER_NAME];

  GetPlayerName(playerid, advertiser, sizeof(advertiser));

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  SendClientMessageToAll(COLOR_LIGHTGREEN, " ");

  format(string, sizeof(string), "[Warning]: %s[iD: %d] face reclama ",advertiser,i);

  ABroadCast(COLOR_LIGHTRED,string,1);

  return 0;

}

result[idx - offset] = EOS;

result[0] = toupper(result[0]);

if(!strlen(result))

{

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

return 1;

}

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 * 25;

if(GetPlayerCash(playerid) < payout)

        {

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

            SendClientMessage(playerid, COLOR_WHITE, string);

            return 1;

        }

GivePlayerCash(playerid, - payout);

SBizzInfo[7][sbTill] += payout;

ExtortionSBiz(7, payout);

format(string, sizeof(string), "[AD] %s, Contact: %s Phone: {FFFFFF}%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, 1);

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

}

return 1;

}[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

1. Nu s-a inteles nimic, pune mana pe o carte de romana.

2. Schimba

SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
	   SendClientMessageToAll(COLOR_LIGHTGREEN, " ");
cu
for( new i; i <= 126; i ++ ) SendClientMesssageToAll( COLOR_LIGHTGREEN, " " );

3. Probleme Godfather.

Link to comment
Share on other sites

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.