SA-MP Forums Archive
zcmd (+rep) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: zcmd (+rep) (/showthread.php?tid=349116)



zcmd (+rep) - Crazyboobs - 07.06.2012

Hello
Can anyone please convert this command to zcmd please?

pawn Код:
if(!strcmp("/sglass",cmd,true))
    {
        tmp = strtok(cmdtext, idx);
        skin = GetPlayerSkin(playerid);
        id = strval(tmp);
       
        if(!id || id > 33) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /sglass [1 - 33]");

        TextDrawShowForPlayer(playerid, MsgBox);
        SetTimerEx("Hide", 3500, false, "d", playerid);

        if(id > 30) goto PutPoliceGlasses;
        else
        {
            id--;
            glasseid =  CommonRed + id;
            SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
            return 1;
        }

        PutPoliceGlasses:

        glasseid = CopGlassesBlack + (id - 31);
        SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
        return 1;
    }



Re: zcmd (+rep) - WillyP - 07.06.2012

Edited, nevermind.


Re: zcmd (+rep) - Crazyboobs - 07.06.2012

Ok ty +rep