Quote:
Originally Posted by Riddick94
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.
|
Bro, thanks for your help but i know that one i cant convert the upper one with the Timer/Timekiller idk how?
if u were nice , please help me
Any help apreciated!