17.04.2017, 12:34
pawn Код:
CMD:advertise(playerid,params[]) return cmd_ad(playerid,params[]);
CMD:ad(playerid, params[])
{
new payout = idx * 25;
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "s[64]", result)) return SendClientMessage(playerid, COLOR_CMD, "USAGE: (/ad)vertise [text]");
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;
}
GivePlayerMoney(playerid, - payout);
SBizzInfo[7][sbTill] += 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 %s~n~~w~Message contained: %d Characters", FormatMoney(payout), idx);
GameTextForPlayer(playerid, string, 5000, 5);
if(PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
return 1;
}
So you do:
pawn Код:
CMD:ru(playerid,params[]) return cmd_rules(playerid,params[]);
CMD:rul(playerid,params[]) return cmd_rules(playerid,params[]);
CMD:rule(playerid,params[]) return cmd_rules(playerid,params[]);