Change Skin not working after.. -
kbalor - 24.06.2012
Im using a freeroam gamemode it has skin chooser before you play. and i have a filterscript for change skin, After i type /skin and the id number it changes the skin. But after i get killed it goes back to the original skin that i have chosen before. Any info??
Re: Change Skin not working after.. -
newbienoob - 24.06.2012
Try this
pawn Код:
//Under OnPlayerDeath
GetPlayerSkin(playerid);
//Under OnPlayerSpawn
SetPlayerSkin(GetPlayerSkin(playerid));
Re: Change Skin not working after.. -
kbalor - 24.06.2012
Quote:
Originally Posted by newbienoob
Try this
pawn Код:
//Under OnPlayerDeath GetPlayerSkin(playerid); //Under OnPlayerSpawn SetPlayerSkin(GetPlayerSkin(playerid));
|
I get 1 error
Quote:
C:\KevsFile\Torreto Racing(1)\gamemodes\TorettoRacing.pwn(7012) : warning 202: number of arguments does not match definition
|
This is On my playerspawn
Quote:
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(GetPlayerSkin(playerid));
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerInterior(playerid, 0);
SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
GameTextForPlayer(playerid,"~g~Waiting for the Objects to load",2000,3);
return 1;
}
|
Solved: SetPlayerSkin(playerid, GetPlayerSkin(playerid));
Re: Change Skin not working after.. -
Jonny5 - 24.06.2012
setplayerskin expects a playerid also
pawn Код:
SetPlayerSkin(playerid,GetPlayerSkin(playerid));
Re: Change Skin not working after.. -
kbalor - 24.06.2012
Can you help me with this? After they register, The skin that they have choose will save also after they leave the server and they comes back, the skin load automatically. Im using luxadmin with register and login, how can i add to the script??
Hopefully someone can help me with this.
Thanks!
Re: Change Skin not working after.. -
Faisal_khan - 24.06.2012
Which saving system you use?
Re: Change Skin not working after.. -
Jonny5 - 24.06.2012
its simple
show how you load their skin
EDIT:
its all you Faisal_khan i dont know LuxAdmin at all.
Re: Change Skin not working after.. -
kbalor - 24.06.2012
Quote:
Originally Posted by Faisal_khan
Which saving system you use?
|
i am just going to say that, im using Luxadmin. Don't know how to put load skin and where to put it.
Re: Change Skin not working after.. -
kbalor - 24.06.2012
Quote:
Originally Posted by Jonny5
its simple
show how you load their skin
|
I dont know how to make it in Luxadmin, i'm sure ill messed up the whole script. I need your help jonny.
Re: Change Skin not working after.. -
Jonny5 - 24.06.2012
well does the skin already save and load
and you just need to apply it ?
or you actually need to edit the saving/loading code?
Im not sure about luxadmin as i never messed in it, hopefully Faisal_khan or some others can help here.
also just backup your hole server before you edit it!@
this way you got a working copy to fall back on.