Raised This Month: $ Target: $400
 0% 

Solved Problem with zp_giveap plugin command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-12-2017 , 13:33   Re: Problem with zp_giveap plugin command
Reply With Quote #3

You need to check the cmd_access
PHP Code:
if(!cmd_access(id,level,cid,2)) // the 4th parameter is the number of argc (number of blanks) 

And ....

 if(!
equali(arg_name,"@ALL")) target cmd_target(id,arg_name,0
else 
target 1
     

And...

  if(
equali(arg_name,"@ALL")) 
    { 
        for(new 
i=1;i<=get_maxplayers();i++) if(is_user_connected(i)) zp_ammopacks_set(izp_ammopacks_get(i) + num_ap
        
client_printc(0"!g%s %L"PREFIXLANG_PLAYER"AP_AMMOTOALL"namenum_ap)
    } 

Last edited by Natsheh; 02-12-2017 at 13:40.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 20:27.


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