How to disable cj's skin
#1

Hello, it is there any easy and quick way to completly disable ALL cj's skins? Im trying to make every character have their real movement speed,so it must be checked if anyone haves this skin every some seconds because in my server i also have a /skin command, so if i make something to check if the players haves that skin just when they spawn they could change it whenever they want... All i just wonder is to make one of those if with a lot of getplayerid and that would be a pain D=
Reply
#2

pawn Код:
stock IsInvalidSkin(skin)
{
    #define MAX_BAD_SKINS   15
    new badSkins[MAX_BAD_SKINS] =
    {
        0, 3, 4, 5, 6, 8, 42, 65, 74, 86,
        119, 149, 208, 273, 289,
    };

    for (new i = 0; i < MAX_BAD_SKINS; i++)
    {
        if (skin == badSkins[i] || skin <= 0 || skin >= 300) return true;
    }

    return false;
}
Reply
#3

That is still long, make it on this way;

pawn Код:
public OnPlayerUpdate(playerid)
{
   // other things
   if(GetPlayerSkin(playerid) == 0)) SetPlayerSkin(playerid, 1);
}
Else add brackets after if(GetPlayerSkin(playerid) == 0)) and after SetPlayerSkin(playerid, 1);
Reply
#4

Claude your script detects only if its skinid 0, but as GaGlets skin detects all of the bad skins. Still, GaGlets one is better.
Reply
#5

The poster only asked for the CJ SKIN!! not all other skins. get it?
Reply
#6

0, 3, 4, 5, 6, 8, 42, 65, 74, 86,
119, 149, 208, 273, 289,

That is ALL CJ's skin ID's x)
Reply
#7

"...to completly disable ALL cj's skins?..."

LOL

"The poster only asked for the CJ SKIN!! not all other skins. get it? "

Thanks too much guys i mixed both scripts and it worked, its just what i wanted...i dont hate cj but he runs like a hax0r XD when you disable UsePlayerPedAnims();

Edit:
Duuh afther a lot of tests i denoted that if i die the skin turns back to cj D=....its weird
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)