Raised This Month: $ Target: $400
 0% 

coding help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-24-2005 , 19:05   coding help
Reply With Quote #1

in unlimited_nade.sma, i can't amx_nade myself because it says i have immunity, anyone able to help me fix it up a bit?

thanks
Attached Files
File Type: sma Get Plugin or Get Source (unlimited_nades.sma - 505 views - 4.5 KB)
Kero_1116 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-24-2005 , 19:57  
Reply With Quote #2

Change the two
Code:
cmd_target(id, arg, 5)
to
Code:
cmd_target(id, arg, 4)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-25-2005 , 17:57  
Reply With Quote #3

that did not work
Kero_1116 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-25-2005 , 18:16  
Reply With Quote #4

Code:
cmd_target(id, arg, 3)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-25-2005 , 18:29  
Reply With Quote #5

sorry, but that code doesn't work, but i tried 2 and now it works, thanks
Kero_1116 is offline
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-28-2005 , 09:25  
Reply With Quote #6

i just realized it doesn't work anymore, anyone know a fix?
Kero_1116 is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 04-28-2005 , 13:32  
Reply With Quote #7

I think this is what you are looking for.

Code:
public givenade(id, level, cid)
{
     // The last number in the cmd_access should be the number or
     // arguments that this function received
     // Ex: the arguments for your plugin should be 2
     // Check to see if name/@TEAM/*(all) is in the read_argv(1, arg, 31)
     // 0 = cmd eg: amx_nade
     // 1 = id of caller
     // 2 = name | @TEAM | *
     if(!cmd_access(id, level, cid, 2))
          return PLUGIN_HANDLE

     new arg[32]
     read_argv(1, arg, 31)
}
Cheers!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-28-2005 , 23:18  
Reply With Quote #8

Quote:
Originally Posted by Zor
I think this is what you are looking for.

Code:
public givenade(id, level, cid)
{
     // The last number in the cmd_access should be the number or
     // arguments that this function received
     // Ex: the arguments for your plugin should be 2
     // Check to see if name/@TEAM/*(all) is in the read_argv(1, arg, 31)
     // 0 = cmd eg: amx_nade
     // 1 = id of caller
     // 2 = name | @TEAM | *
     if(!cmd_access(id, level, cid, 2))
          return PLUGIN_HANDLE

     new arg[32]
     read_argv(1, arg, 31)
}
Cheers!
now, what should id o with this code?
Kero_1116 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 16:37.


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