SA-MP Forums Archive
Question About Skins - 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: Question About Skins (/showthread.php?tid=80404)



Question About Skins - wordas - 04.06.2009

Player Haves a skin he gows to x place ant writes something lets say /mum he's skin changes to lets say 200id ant then he comes back ant writes /mum agen how can i make that he gets back hes skin

Sorry if you couldn't understand me i don't talk good in english


Re: Question About Skins - Weirdosport - 04.06.2009

pawn Код:
//top of script
new Skin[MAX_PLAYERS] = {-1,...};

//in OnPlayerCommandText
if (!strcmp("/mum", cmdtext, true))
{
    if(Skin[playerid] == -1) Skin[playerid] = GetPlayerSkin(playerid), SetPlayerSkin(playerid, 200);
    else SetPlayerSkin(playerid, Skin[playerid]), Skin[playerid] = -1;
    return 1;
}
This is very untested...


Re: Question About Skins - boelie - 11.07.2009

LoL i tested this in my gamemode..works very good and funny XD

Now im trying to understand what you did here and i have question
what does this say or do ? ;
Код:
= {-1,...};



Re: Question About Skins - ledzep - 11.07.2009

http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf
Search for "Progressive initiallers for arrays".