[REQ] nVault & Vip - Function problem
So it's me again :crab:
I'm already starting by giving you my code : Code:
I do this about two days ago and today. But (yes but !! ^^ ) i've a big problem with the last function ( public CmdAddVip( id ) ) I do not know the process well :S and Where to start ... Ps: I've watched how other plugins functioned... :3 If someone could help me do this function and explaining to me his approach it would be very useful for me :bacon!: Thank you in advance rukia |
Re: [REQ] nVault & Vip - Function problem
So what is the purpose of using nVault? If its to save VIPs then just write to an INI file.
|
Re: [REQ] nVault & Vip - Function problem
Hum ... No i just want a code wich does when an admin type amx_addvip "nickname" in the console they are a new vip.
Just that, not a .ini file for the moment ^^ I see this method by Exolent[jNr] : Code:
And i would like to do the same but i don't understand all ... Like for example : level and cid etc... |
Re: [REQ] nVault & Vip - Function problem
nVault is used to save data via a key and a data string or integer.
So players will only be VIP of the map: Code:
http://www.amxmodx.org/funcwiki.php?...cess&go=search |
Re: [REQ] nVault & Vip - Function problem
Oh Thanks a lot !
But is it possible to add a Vip on all maps with no .ini file ? And can you comment this part of plugin for me please : Code:
I reade it : http://www.amxmodx.org/funcwiki.php?go=func&id=175 but I really do not understand that :3 So ... Thanks :D |
Re: [REQ] nVault & Vip - Function problem
And i forget that part :
Code:
If you can just help me ^^ Thank you in advance |
Re: [REQ] nVault & Vip - Function problem
read_argv() gets an argument from a command. In that case it gets the first argument of the amx_addvip command (which is the #userid) and stores it in the szArg string variable.
|
Re: [REQ] nVault & Vip - Function problem
if( !cmd_access( id, level, cid, 2 ) )
Just why do you choose num 2 at the end of the stock ? And not 1 ? Because where are the two argument (lol)... I don't see it. And please what is cid ? (and level) |
Re: [REQ] nVault & Vip - Function problem
2 means the number of command arguments that should be passed to the function in order to work. The command itself is also counted, so that's why it's 2. Now, if you write the command without setting "#userid" argument, it will print a message about the command usage (the message text is that from the 4th parameter of register_clcmd) and the function won't be executed.
About level and cid - they are allways like that, you won't need to change them. Level is the access level from the 2nd parameter of register_clcmd, cid shouldn't be touched - it's about the console message if you don't have the needed access or you have passed wrong number of command arguments. |
| All times are GMT -4. The time now is 06:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.