GetPlayerSkin[Help] Anyone?[SOLVED] - 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: GetPlayerSkin[Help] Anyone?[SOLVED] (
/showthread.php?tid=141191)
GetPlayerSkin[Help] Anyone?[SOLVED] -
Steven82 - 12.04.2010
How do i use the
Код:
GetPlayerSkin(playerid);
to safe skins so when they do a command, they go back to the original skin, i did this
Код:
SetPlayerSkin(playerid,GetPlayerSkin(playerid) );
But the thing is it compiles fine, but it don't work.
Re: GetPlayerSkin[Help] Anyone? -
ДitisOnHuora - 12.04.2010
Are you serious?
Re: GetPlayerSkin[Help] Anyone? -
Assyria - 12.04.2010
new skin[MAX_PLAYERS];
skin = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, skin);
Re: GetPlayerSkin[Help] Anyone? -
Thrarod - 12.04.2010
Yea you must store that value
Re: GetPlayerSkin[Help] Anyone? -
Torran - 12.04.2010
Quote:
Originally Posted by Assyria
new skin[MAX_PLAYERS];
skin = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, skin);
|
Actulley you did that wrong
[code=Correction]
new skin[MAX_PLAYERS];
skin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, skin[playerid]);[/code]
Re: GetPlayerSkin[Help] Anyone? -
Steven82 - 12.04.2010
I thought that is what i had to do.
Re: GetPlayerSkin[Help] Anyone?[SOLVED] -
Jakku - 12.04.2010
If you want to store your old skin, use this:
pawn Код:
new oldskin[MAX_PLAYERS];
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, oldskin[playerid]);