![]() |
|
About Class Selection - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: About Class Selection (/thread-20940.html) |
About Class Selection - SKE92beyond - 10-07-2009 Well i think this is the only section where i can post my question so i ask... I saw that LVP (when a player connect) check if that account exist, if so it skip the class selection right? And it spawns the player in the login room. So i'd like to make a thing like that in my server too.. I've tried with a lot of things like Code: public OnPlayerRequestClass(playerid, classid)I've tried to change return 0 in return 1 and lot of stuff but nothing, i cannot skip tha class selection without making something wrong, and so i've tried to ask here... So if you scripters can say how its in LVP i will be very grateful. Regards, SKE92beyond ![]() EDIT: OK i've just seen that there is a sub-sub-section called Scripting , i hope someone will move this topic
Re: About Class Selection - Matthias - 10-08-2009 Hai http://pawn.pastebin.com/f30d79014 That should work. Edit: the intendation isn't too great, but you can fix that yourself I guess. Re: About Class Selection - Lithirm - 10-08-2009 Well, I'm not the best of all the scripters here, but I'll try to help you. ![]() I'd use dini for some kind of regestration, there you save something like PlayerSkin: [nr].(i do NOT know how dini works ).And when the player gets to Class selection, the server will load the file and the row with PlayerSkin: And well, you'd need a variable to read the line. Then you can, SetPlayerSkin(playerid,[Variable goes here]); (sorry for not helping with any code, but as I don't know dini, I wouldn't know how to exactly do this, but I thought that some ideas might help as well )Re: About Class Selection - Matthias - 10-08-2009 Code: new PlayerFile[50], pName[24];Something like that^ Re: About Class Selection - SKE92beyond - 10-08-2009 (10-08-2009, 06:12 AM)Matthias link Wrote: HaiWell thanks first of all because it works then i need another help, with this sistemation first time i die i return to class selection ...how to avoid that again?
Re: About Class Selection - Matthias - 10-08-2009 Maybe you're using a variable wrong? I use the exact same and it works. Show me your code please
Re: About Class Selection - SKE92beyond - 10-08-2009 (10-08-2009, 04:02 PM)Matthias link Wrote: Maybe you're using a variable wrong? I use the exact same and it works. Show me your code pleaseNo one variable was wrong simply i made a control on the class selection and now everything goes... thanks man
Re: About Class Selection - Matthias - 10-08-2009 No problem |