How to disable cj's skin - 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: How to disable cj's skin (
/showthread.php?tid=179574)
How to disable cj's skin -
JulietaZ - 27.09.2010
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=
Re: How to disable cj's skin -
GaGlets(R) - 27.09.2010
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;
}
Re: How to disable cj's skin -
Claude - 27.09.2010
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);
Re: How to disable cj's skin -
Everybody - 27.09.2010
Claude your script detects only if its skinid 0, but as GaGlets skin detects all of the bad skins. Still, GaGlets one is better.
Re: How to disable cj's skin - [L3th4l] - 27.09.2010
The poster only asked for the CJ SKIN!! not all other skins. get it?
Re: How to disable cj's skin -
Lina H - 27.09.2010
0, 3, 4, 5, 6, 8, 42, 65, 74, 86,
119, 149, 208, 273, 289,
That is ALL CJ's skin ID's x)
Re: How to disable cj's skin -
JulietaZ - 27.09.2010
"...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