05.04.2014, 09:05
Hi, I have a skin filterscript which allows me to use /skin ID, but whenever that player dies, it goes back to the default addplayerclass one. Im still learning,
Copied theese from the gamemode script
#define playerskin
public OnPlayerDeath(playerid, killerid, reason)
{
GetPlayerSkin(playerid, playerskin);
return 1;
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, playerskin);
return 1;
}
Probably wrong, but I atleast tried doing it myself haha.
Copied theese from the gamemode script
#define playerskin
public OnPlayerDeath(playerid, killerid, reason)
{
GetPlayerSkin(playerid, playerskin);
return 1;
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, playerskin);
return 1;
}
Probably wrong, but I atleast tried doing it myself haha.