Hello There, Guest! Login or Register


Lock Teams
#1
Helloo again!
This time I wonder how I can set passwords for charachters during the class selection
Lets say I have 5 teams and the last skin would have a password, like "Leaders only" and then a command like /character [password]

Hope you understood my english there x)

Answer, if you feel for it.


:w
Reply
#2
its a hard long code u d better have 2 look on pastebins
Reply
#3
ok thanks!
Reply
#4
you may need to include dini dudb and dutils
Reply
#5
(05-20-2008, 07:05 AM)Motorola link Wrote: its a hard long code u d better have 2 look on pastebins
What?
(05-21-2008, 01:15 AM)Motorola link Wrote: you may need to include dini dudb and dutils
...

I see what you're asking for here - it's probably hard to do with SA:MP's native class selection.

You'd want to store which classes were available to which playerid's with a two-dimensional array, and force a player back to the class selection with ForceClassSelection() then output a warning message to them if they chose a skin which wasn't available to them. Kind of a gritty method, but hey, it works.

Edit:

Heh, looks like someone already made a tutorial on this. Search before you post, please.
Reply
#6
Sound like you got i all!

thanks, hmm I must have missed that page... :>
Reply
#7
oh i thought he was talking bout /register /loginĀ  _O- _O- _O-
Reply
#8
noes, but I'll try to do as it sas on "fry's" link
Reply
#9
(05-22-2008, 02:52 AM)Motorola link Wrote: oh i thought he was talking bout /register /loginĀ  _O- _O- _O-
Well, if he was, where is the long and hard code in that? Especially using dini or w/e. Infact I done one the other day for Farepak using dini and it took 5 mins.

Nothings hard if you know how to do it ;) I remember when I was first learning dini too, asking tomozj for help o/

But meh, I prefer the file functions alone now, got used to em :p
Reply
#10
Jay has spoken.
ok jay, so I have to learn dini,(because its good to know:>)
oh Jay, you are Grove on the unofficial forum ...I think? :?

Perhaps I should use pm instead :w
Reply