Change Skin not working after..
#1

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??
Reply
#2

Try this

pawn Код:
//Under OnPlayerDeath
GetPlayerSkin(playerid);
//Under OnPlayerSpawn
SetPlayerSkin(GetPlayerSkin(playerid));
Reply
#3

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));
Reply
#4

setplayerskin expects a playerid also


pawn Код:
SetPlayerSkin(playerid,GetPlayerSkin(playerid));
Reply
#5

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!
Reply
#6

Which saving system you use?
Reply
#7

its simple

show how you load their skin

EDIT:
its all you Faisal_khan i dont know LuxAdmin at all.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)