Server crash if anyone type /skin higher than 299
#9

Dont just copy script, try to understand it :S

pawn Код:
if(strcmp(cmd, "/setskin", true) == 0)
    {
        new tmp[256];
        tmp = strtok(cmdtext,idx);
        if(strval(tmp) < 0 || strval(tmp) > 299) return SendClientMessage(playerid, -1,"That skin does not exist");
        SetPlayerSkin(playerid,strval(tmp));
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)