2 Questions
#1

Hello,
(using Y_INI)
1) How would I make a command to give someone else Admin Level using Y_INI saving?

2) how would I make a class selection where you press the arrow key's and You can choose from police to Normal player?
Reply
#2

look at YSI as a hole,

I have been recently working on this type of system
its not complete but is a starting framework for a gamemode
id gladly share it with you if you like.
I just havent posted it yet as its not complete.


the class selection is custom,
the system accounts for admins and devs,
among other groups you can learn from it im sure

however it dont use Y_INI at all its using y_uvar for loading/saving player data
the framework currently is unsing these YSI libs

y_classes
y_users
y_hooks
y_dialogs
y_inline
y_svar
y_uvar
y_iterate
y_commands


and im sure what ever internals these includes add

if youd like my demo mode let me know and ill post it here

regards,
Reply
#3

Sure.
Reply
#4

can someone tell me how to do the command to make someone admin?
Reply
#5

http://www.sendspace.com/file/mvr0hw

youll find all the code for the game mode is includes and not in the classdemo.pwn
look in the include folder for all my code(not pawno include)

add sscanf to the plugins line in your server.cfg
I included the sscanf plugin and also YSI 3.1
for convenience but credits to ****** for them!!!!


load up your server and SAMP client
login to RCON and then you can use the /setadmin and /setdev commands


Note i fore a signup right now as I have not handled the sign ups yet
so when you connect youll be logged in automatically from your name
This is just a portion i have not got to yet.,

Read there the includes in the order they are include in the main gamemode classdemo
I tried to add comments to help understand in every include,

also please dont claim any of this work as yours.
any questions feel free to ask ill answer as much as i can

regards,
Reply
#6

Thanks.
Reply
#7

How do I make a class Selection?
Reply
#8

[MP]Ditch - you don't have to insult anyone, and why are you giving such complex answers about class selections? You can easily make class selections using AddPlayerClass....
Reply
#9

pawn Код:
public SetupPlayerForClassSelection
{
SetplayerPos(x,y,z)
SetCameraPos(x,y,z)
SetCameralookat(x,y,z)

return 1;
}
Reply
#10

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
[MP]Ditch - you don't have to insult anyone, and why are you giving such complex answers about class selections? You can easily make class selections using AddPlayerClass....
and how did I insult anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)