[help]Comand
#1

pawn Код:
if(strcmp(cmd,"/buyskin",true)==0) {
        if(IsPlayerInRangeOfPoint(playerid, 10.0, 203.4517,-45.1871,1001.8047) || IsPlayerInRangeOfPoint(playerid, 10.0, 212.2824,-8.3213,1001.2109) || IsPlayerInRangeOfPoint(playerid, 10.0, 207.3224,-104.8712,1005.1328))
        {
            new tmp[256];
            tmp = strtok(cmdtext, idx);
            new Skin;
            Skin = strval(tmp);
            if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Use: /comprarroupa [skin]");
        return 1;
        }
        if(Skin == 0 || 16 || 70 || 71 || 100 || 102 || 103 || 104 || 105 || 106 || 107 || 108 || 109 || 110 || 111 || 112 || 113 || 114 || 115 || 116 || 117 || 118 || 124 || 125 || 126 || 127 || 174 || 175 || 260 || 265 || 266 || 267 || 269 || 270 || 271 || 272 || 274 || 275 || 276 || 277 || 278 || 279 || 280 || 281 || 282 || 283 || 284 || 285 || 286 || 287 || 288)//Skin
        {
        SendClientMessage(playerid, COLOR_RED, "Lock Skin");
        return 1;
        }
        if(Skin= idx || Skin == idx)
        {
        SendClientMessage(playerid, COLOR_RED, "Invalid Skin");
        return 1;
        }
        if(GetPlayerMoney(playerid) <100)
            {
            SendClientMessage(playerid, COLOR_RED,"Vocк nгo pode pagar");
        return 1;
        }
        GivePlayerMoney(playerid, -100);
        SetPlayerSkin(playerid, roupa);
        }
    return 1;
    }
but all skins in my server are locked
Reply
#2

EDIT:Wrong xD
Reply
#3

No
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)