zCMD problem
#7

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;
}
For example you have CMD:rules in your script, and you want to make /rul and /ru and /rule to open the /rules command.

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[]);
Before the command cmd:rules.
Reply


Messages In This Thread
zCMD problem - by a1m[z0r] - 17.04.2017, 08:30
Re: zCMD problem - by Zav1337 - 17.04.2017, 08:46
Re: zCMD problem - by a1m[z0r] - 17.04.2017, 09:51
Re: zCMD problem - by Younes44 - 17.04.2017, 09:56
Re: zCMD problem - by Astralis - 17.04.2017, 11:02
Re: zCMD problem - by a1m[z0r] - 17.04.2017, 11:57
Re: zCMD problem - by Astralis - 17.04.2017, 12:34
Re: zCMD problem - by Jessyy - 17.04.2017, 13:35
Re: zCMD problem - by a1m[z0r] - 17.04.2017, 14:00

Forum Jump:


Users browsing this thread: 3 Guest(s)