Raised This Month: $ Target: $400
 0% 

Solved Problem with zp_giveap plugin command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 02-12-2017 , 14:14   Re: Problem with zp_giveap plugin command
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
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)
    } 
This fixed my problem, thanks!
GasmoN is offline
Reply



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