how to change a command to zcmd ?
#1

hi
i have this command and i wanna to change it to zcmd

Код HTML:
    if(strcmp(cmd, "/drag", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
        if(PINFO[playerid][pAdmin] <= 0)
        {
        SCM(playerid,COLOR_ERROR,"Error: Error: Your admin level isn't high enough to use this command");
        return 1;
        }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /drag <PlayerID/PartOfName>");
                return 1;
            }
            new newcar = GetPlayerVehicleID(playerid);
            new playa;
            playa = ReturnUser(tmp);
            if(!newcar) { SCM(playerid,COLOR_ERROR,"You are not in a vehicle."); return 1; }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                            PutPlayerInVehicle(playa,newcar,1);
                            GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new sttr[256];
                            format(sttr,256,"Admin %s drags you to his/her vehicle.",sendername);
                            SCM(playa,COLOR_AdminWarn,sttr);
                            SCM(playerid,COLOR_ERROR,"Dragged.");
                    }
                }
        }
        return 1;
    }
can someone write for example ? <3
Reply


Messages In This Thread
how to change a command to zcmd ? - by SH0x - 17.05.2017, 20:57
Re: how to change a command to zcmd ? - by adri[4]Life - 17.05.2017, 21:14
Re: how to change a command to zcmd ? - by BiosMarcel - 17.05.2017, 21:14
Re: how to change a command to zcmd ? - by RxErT - 18.05.2017, 02:23
Re: how to change a command to zcmd ? - by IceBilizard - 18.05.2017, 02:30
Re: how to change a command to zcmd ? - by zedshadowzw - 18.05.2017, 04:17
Re: how to change a command to zcmd ? - by SH0x - 18.05.2017, 06:16
Re: how to change a command to zcmd ? - by RxErT - 18.05.2017, 06:49
Re: how to change a command to zcmd ? - by Spoookymon - 18.05.2017, 07:10

Forum Jump:


Users browsing this thread: 1 Guest(s)