Help me converting to ZCMD :p
#2

See this? This is your command using STRING COMPARE (STRCMP)
pawn Код:
if(!strcmp("/moneybag", cmdtext, true))
    {
        new string[150];
        if(!MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000}hidden in {FFFF66}%s!", MoneyBagLocation);
        if(MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag is {FF0000} not running!");
        return SendClientMessage(playerid, -1, string);
    }
and here's a ZCMD example of your command:
pawn Код:
CMD:moneybag(playerid, params[])
    {
        new string[150];
        if(!MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000}hidden in {FFFF66}%s!", MoneyBagLocation);
        if(MoneyBagFound) format(string, sizeof(string), "**The {33FF66}Money Bag is {FF0000} not running!");
        return SendClientMessage(playerid, -1, string);
    }
Do the rest on your own. It's just changing a one line.
Reply


Messages In This Thread
Help me converting to ZCMD :p - by Mzake - 24.08.2014, 19:05
Re: Help me converting to ZCMD :p - by Riddick94 - 24.08.2014, 19:45
Re: Help me converting to ZCMD :p - by Mzake - 24.08.2014, 22:37
Re: Help me converting to ZCMD :p - by rymax99 - 24.08.2014, 22:42
Re: Help me converting to ZCMD :p - by IceCube! - 24.08.2014, 22:42
Re: Help me converting to ZCMD :p - by Mzake - 24.08.2014, 22:48
Re: Help me converting to ZCMD :p - by IceCube! - 24.08.2014, 22:51
Re: Help me converting to ZCMD :p - by rymax99 - 24.08.2014, 22:52
Re: Help me converting to ZCMD :p - by Mzake - 24.08.2014, 22:54
Re: Help me converting to ZCMD :p - by Mauzen - 24.08.2014, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)