SA-MP Forums Archive
[help]Comand - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help]Comand (/showthread.php?tid=146813)



[help]Comand - tshadow - 09.05.2010

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


Re: [help]Comand - luckie12 - 09.05.2010

EDIT:Wrong xD


Re: [help]Comand - tshadow - 09.05.2010

No