- 0
Advertizment problema
-
Similar Content
-
- 7 answers
- 1,991 views
-
- 3 answers
- 1,974 views
-
- 3 replies
- 258 views
-
- 1 reply
- 214 views
-
- 1 answer
- 631 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
heker
Lam facut de level 4 si mai in romana dar nu imi pai apare timpul sa astepti 60secunde :|
if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] >= 4)
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[264];
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), " Asteapta , %d minute Pentru alt anunt !", (addtimer/60000));
SendClientMessage(playerid, COLOR_GRAD2, string);
return 1;
}
new payout = idx * 25;
if(GetPlayerCash(playerid) < payout)
{
format(string, sizeof(string), "* Au fost %d charactere si tea costat $%d, de bani.", offset, payout);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
GivePlayerCash(playerid, - payout);
SBizzInfo[7][sbTill] += payout;
ExtortionSBiz(7, payout);
format(string, sizeof(string), "Anunt: %s, Nume: %s Tel: %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;}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Nu ai level 4 !");
}
}
return 1;
}
1 answer to this question
Recommended Posts