Raised This Month: $ Target: $400
 0% 

[REQ] nVault & Vip - Function problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-17-2012 , 08:23   Re: [REQ] nVault & Vip - Function problem
Reply With Quote #4

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:
public CmdAddVip( id, level, cid ) {     if( !cmd_access( id, level, cid, 2 ) )         return PLUGIN_HANDLED;         new szArg[ 36 ];     read_argv( 1, szArg, charsmax( szArg ) );         new target = cmd_target( id, szArg, CMDTARGET_NO_BOTS );         if( !target )     {         console_print( id, "Player not found!" );         return PLUGIN_HANDLED;     }         static szName[ 2 ][ 36 ];     get_user_name( id , szName[ 0 ] , charsmax( szName[] ) );     get_user_name( target , szName[ 1 ] , charsmax( szName[] ) );         client_print( 0 , print_chat , "%s gave a Vip place for the player %s" , szName[ 0 ] , szName[ 1 ] );         return PLUGIN_HANDLED; }
As for info on the function:
http://www.amxmodx.org/funcwiki.php?...cess&go=search
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 06-17-2012 at 08:23.
hornet is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode