Raised This Month: $ Target: $400
 0% 

Please delete this post


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-15-2006 , 16:11   Please delete this post
Reply With Quote #1

--Edited--
SubStream is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-15-2006 , 16:49  
Reply With Quote #2

1.) The 2 means there are two arguments, including the command. If you have amx_nick[list=1] <newname> the number would be 3.

amx_godmode works because it gets the person's godmode and switches it. In other words, if the person's godmode is already off, it will turn it on, and vice-versa. It doesn't need a second parameter (third argument).

2.) The third argument of cmd_target adds the four possible numbers together, so if you wanted to respect immunity and the player must be alive, it'd be 5. 2 + 4 + 8 = 14, look at the notes for cmd_target:

http://www.amxmodx.org/funcwiki.php?go=func&id=596

3.) arg[32]: I don't really understand this either, I just have come to accept it as the way it should be. From my understanding, 32 is the size, and it allows 31 characters... Sorry I can't help you more.

4.) set_user_godmode(player,1): The function set_user_godmode calls for an id in the first parameter and a number in the second. If the number is specified (as a 1) then godmode is enabled for that player. If the number isn't specified or is 0, godmode is disabled for that player.

5.) If you read the funcwiki notes for the commands, you'll see that the client_print's first argument needs a player index. If the player index is 0, the message is sent to everyone.

http://www.amxmodx.org/funcwiki.php?go=func&id=22

6.) Read the funcwiki notes!

http://www.amxmodx.org/funcwiki.php
capndurk is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-15-2006 , 16:59  
Reply With Quote #3

--Edited--
SubStream is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-15-2006 , 17:01  
Reply With Quote #4

No, you can make the number pretty high.. I'm not sure what the maximum is, but it's just a string variable. I've made them with length 300, and I just use get_whatever(1, variable, 299).

I use 192/191 for text (like text for say or say_team, or another command), and 32/31 for names, steam ids, user ids, ip addresses, etc. I've found these numbers work fine.
capndurk is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-15-2006 , 17:13  
Reply With Quote #5

--Edited--
SubStream is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-15-2006 , 17:13  
Reply With Quote #6

No problem man, glad to help out.
capndurk 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:31.


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