get skin problem ... ? - 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)
+--- Thread: get skin problem ... ? (
/showthread.php?tid=457194)
get skin problem ... ? -
omidi - 09.08.2013
i want GetSkin get all skin exept 280 , 288 , 286 on death event
but when im in skin 280 or 288 or 286 then i want to change class(f4 then die) and select other skins
on spawn it will set my skin to those (280 , 286 , 28
skins ....... whats the problem ?
i dont want GetSkin put those skin ids in it
Код:
public OnPlayerSpawn(playerid, killerid, reason){
SetPlayerSkin(playerid,GetSkin[playerid]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason){
if(GetPlayerSkin(playerid)!= 280 || GetPlayerSkin(playerid)!= 288||GetPlayerSkin(playerid)!= 286){
GetSkin[playerid]=GetPlayerSkin(playerid) ;
}
return 1;
}
Re: get skin problem ... ? -
BullseyeHawk - 09.08.2013
When player tries to change the skin to 280, 288, 286 on F4(ForceClassSelect) you wan't to disable that, correct?
I don't understand you so I just want to make sure.