Help convert command to ZCMD
#1

Anyone can help convert it to ZCMD?

Код:
if(strcmp(cmd, "/parduoti", true) == 0)
        {
        tmp = strtok(cmdtext, idx);
                if (!strlen(tmp))
                {
                    SendClientMessage(playerid, 0xFFFFFFAA, " /pcarsell [playerid] [Preis]");
            return 1;
        }
        new sellplayerid = ReturnUser(tmp);
        tmp = strtok(cmdtext, idx);
                if (!strlen(tmp))
                {
                    SendClientMessage(playerid, 0xFFFFFFAA, "/pcarsell [playerid] [Geld]");
            return 1;
        }
        new preis = strval(tmp);
        if (preis<0)
        {
                    SendClientMessage(playerid, 0xFFFFFFAA, "Bloga kaina.");
            return 1;
        }
            if (Carlist[playerid][Typ]==-1)
            {
                SendClientMessage(playerid, 0xFFFFFFAA, "Neturite automobilio!");
                return 1;
            }
        if (!IsPlayerConnected(sellplayerid))
        {
                    SendClientMessage(playerid, 0xFFFFFFAA, "Ћaidėjas atsijungęs.");
            return 1;
        }
        bietetAn[sellplayerid][0]=playerid;
                bietetAn[sellplayerid][1]=preis;
                new playername[MAX_PLAYER_NAME];
                new sellplayername[MAX_PLAYER_NAME];
                GetPlayerName(playerid,playername,sizeof(playername));
                GetPlayerName(sellplayerid,sellplayername,sizeof(sellplayername));
                format(string,128,"Ћaidėjui %s siūlote automobilį uћ %i ",sellplayername,preis);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
                SendClientMessage(playerid, 0xFFFFFFAA, "Kad atљaukti pardavime raљykite /atsaukti.");
        format(string,128,"%s siūlo automobilį %s uћ $%i .",playername,Kaufliste[Carlist[playerid][Typ]][Name],preis);
        SendClientMessage(sellplayerid, 0xFFFFFFAA, string);
        SendClientMessage(sellplayerid, 0xFFFFFFAA, "Jeigu jums tenkina suma raљykite /priimti.");
            return 1;
        }
Reply


Messages In This Thread
Help convert command to ZCMD - by EdvinasStudio - 29.04.2018, 22:40
Re: Help convert command to ZCMD - by UFF - 30.04.2018, 04:16
Re: Help convert command to ZCMD - by EdvinasStudio - 01.05.2018, 20:16
Re: Help convert command to ZCMD - by Flashhiee - 01.05.2018, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)