How to convert this command into ZCMD?
#2

PHP код:
CMD:setaccent(playerid,params[])
{
            new 
cmd[256];
            new 
tmp[256];
            new 
string[128];
            new 
idx;
            if(
IsPlayerConnected(playerid) && PlayerInfo[playerid][pAdmin] > 1)
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp) || strlen(tmp) <= || strlen(tmp) > 26)
                {
                        
SendClientMessage(playerid,0xFFFFFFAA,"Usage: /accent {58A624}[ accent name ]{FFFFFF}.");
                        
SendClientMessage(playerid,0xFFFFFFAA,"Example: {58A624}/accent Portuguese ");
                        return 
1;
                }
                
format(string,sizeof(string),"Accent: You have changed your accent to {58A624}%s.",tmp);
                
SendClientMessage(playerid,0xFFFFFFAA,string);
                
strmid(pAccent[playerid],tmp,0,sizeof(tmp),255);
                }
                return 
1;

Reply


Messages In This Thread
How to convert this command into ZCMD? - by NotYoMama - 10.07.2015, 13:42
Re: How to convert this command into ZCMD? - by Mouiz - 10.07.2015, 13:48
Re: How to convert this command into ZCMD? - by JaKe Elite - 10.07.2015, 13:59
Re: How to convert this command into ZCMD? - by NotYoMama - 10.07.2015, 13:59
Re: How to convert this command into ZCMD? - by NotYoMama - 10.07.2015, 14:04
Re: How to convert this command into ZCMD? - by JaKe Elite - 10.07.2015, 14:05
Re: How to convert this command into ZCMD? - by NotYoMama - 10.07.2015, 14:19
Re: How to convert this command into ZCMD? - by JaKe Elite - 10.07.2015, 14:40
Re: How to convert this command into ZCMD? - by NotYoMama - 10.07.2015, 14:55
Re: How to convert this command into ZCMD? - by Threshold - 10.07.2015, 15:06

Forum Jump:


Users browsing this thread: 4 Guest(s)