Skinzzzzzz :( - 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: Skinzzzzzz :( (
/showthread.php?tid=154668)
Skinzzzzzz :( -
Antonio [G-RP] - 14.06.2010
So I am changing from skin selection to command skin selection. Can anybody tell me how I would do something like this..
at top have the defines for bunch of skins...
pawn Код:
new Peds[10][1] = {
{160},//0
{256},
{263},
{262},
{261},
{260},
{259},
{258},
{257},
{256},
};
And then on a key button pressed, how would you change the skin either up, or down?
Re: Skinzzzzzz :( -
russo666 - 14.06.2010
Hope you can modify and understand something from it:
http://forum.sa-mp.com/index.php?top...877#msg1065877
Re: Skinzzzzzz :( -
Antonio [G-RP] - 14.06.2010
Made no sense, lol
Re: Skinzzzzzz :( -
Antonio [G-RP] - 15.06.2010
Alright so I've established, I can just do where they go up by skins, like
on a command,
SetPlayerSkin(GetPlayerSkin+1);
but, what if it is an invalid skin ID?
Re: Skinzzzzzz :( -
Jefff - 16.06.2010
Something like this mouse keys
Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
new Peds[10][1] = {
{160},
{256},
{263},
{262},
{261},
{260},
{259},
{258},
{257},
{256}
};
new Skin[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(128))
{
Skin[playerid] %= 10;
SetPlayerSkin(playerid,Peds[Skin[playerid]][0]);
printf("%d - %d",Skin[playerid],Peds[Skin[playerid]][0]);
Skin[playerid]++;
}
if(PRESSED(4))
{
if(Skin[playerid] == -1) Skin[playerid] = 9;
SetPlayerSkin(playerid,Peds[Skin[playerid]][0]);
printf("%d - %d",Skin[playerid],Peds[Skin[playerid]][0]);
Skin[playerid]--;
}
return 1;
}
Re: Skinzzzzzz :( -
Antonio [G-RP] - 16.06.2010
Thanks heaps, but since I haven't gone through pawno THAT far, is makes NO sense to me.