SA-MP Forums Archive
Question + Help - 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 + Help (/showthread.php?tid=146878)



Question + Help - [LSB]TheGame - 09.05.2010

A way to change everyones skins to a certain skin, except for yours

and to change everyones skin back to they original skin


Re: Question + Help - ViruZZzZ_ChiLLL - 09.05.2010

Like /setskinall?


Re: Question + Help - Conroy - 09.05.2010

pawn Код:
new LastSkin[MAX_PLAYERS];
pawn Код:
//Assuming you're using this in a command...
for(new i=0; i<MAX_PLAYERS; i++) {
LastSkin[i] = GetPlayerSkin(i);
SetPlayerSkin(i, ID);
}
SetPlayerSkin(playerid, LastSkin[playerid]);
pawn Код:
//To change back:
for(new i=0; i<MAX_PLAYERS; i++) {
SetPlayerSkin(i, LastSkin[i]);
}



Re: Question + Help - [LSB]TheGame - 09.05.2010

thanks g