Skin Selection (y_ini)
#1

Hey!

So Im doing my script in Y_Ini works fine etc however what I want to do is add skin selection and I have already tried doing something as shown in the picture below

(Dont mind the sakura trees xD)

A character is showing which I didnt add but thats a minor, tho what I need is to add a skin selection right here with the buttons bellow to move ofc, atm I cant because I dont know how to add it and as well to save the skins with y_ini into current database so when the player chooses the skin he will spawn (SetSpawnInfo?) he will have the skin saved so relogged and logged back in having it and skipping the skin selection because hes a registrated player (something like
pawn Код:
new bool:newPlayer = false;
)
Reply
#2

Quote:
Originally Posted by Colossus_
Посмотреть сообщение
You want them to select a class(skin) just before they spawn?
Yea so when they click spawn they will spawn in the co-ordinates of the AddPlayerClass or SetSpawnInfo

EDIT: Dont mind the skin selection I've got it! but the prob now is to save the skins
Reply
#3

I have got skin selection done they spawn when they click spawn but here is the other thing...

I have to add 266 ADDPLAYERCLASS?! or is there any other way with one AddPlayerClass in the GM but when the player moves the arrow the skin will be chaning and the spawn will be the same?

And as well what I need is saving skins into the database so the player will logout and log in with the skin he choosed from skin selection, so I can do newPlayer = false on player connect so he will skip the skin selection because he already has a skin and is registrated!
Reply
#4

Quote:
Originally Posted by Colossus_
Посмотреть сообщение
Lol i just coded a class selection for you.

So when they click the arrows it switches the class(team) id from the skin. Read my code properly. Understand it. Its exactly what your asking for.

Like i said before and ill say it again, Master this https://sampwiki.blast.hk/wiki/PAWN_tutorial before you make an idiot of yourself.
I already have skin selection, this is more like for a TDM but Im doing a rp... and it does nto answer the question of how to not add 266 AddPlayerClass beside doing it in one
like I think IsValidSkin or something like that?

As well y_ini I have done load and it is without errors now how to do writing I got somethig like that

pawn Код:
INI_WriteInt( PlayerAcc,    "SKIN",
what do I add more?

EDIT:I have got WriteInt done!

2ND: I've got the skin saved! it works! Now I just need to make more skins to select but I dont want to spam the GM with 266 AddPlayerClass!
Reply
#5

Bump so, anyone knows how to get Player skip the skin selection if he is registrated OR he already has a skin in his file? My idea did NOT work...
Reply
#6

Quote:
Originally Posted by Colossus_
Посмотреть сообщение
OnPlayerConnect...check if there registered/logged in...if so call OnPlayerSpawn(playerid);..

How hard can it be?
Can be hard when y_ini load and check function will be needed to check if the player has skin or not -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)