2 Questions -
BleverCastard - 07.04.2012
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?
Re: 2 Questions -
Jonny5 - 07.04.2012
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,
Re: 2 Questions -
BleverCastard - 07.04.2012
Sure.
Re: 2 Questions -
BleverCastard - 07.04.2012
can someone tell me how to do the command to make someone admin?
Re: 2 Questions -
Jonny5 - 07.04.2012
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,
Re: 2 Questions -
BleverCastard - 07.04.2012
Thanks.
Re: 2 Questions -
BleverCastard - 07.04.2012
How do I make a class Selection?
Re: 2 Questions -
Jochemd - 07.04.2012
[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....
Respuesta: 2 Questions -
Chris1337 - 07.04.2012
pawn Код:
public SetupPlayerForClassSelection
{
SetplayerPos(x,y,z)
SetCameraPos(x,y,z)
SetCameralookat(x,y,z)
return 1;
}
Re: 2 Questions -
BleverCastard - 07.04.2012
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?