Please delete this post
--Edited--
|
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 |
--Edited--
|
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. |
--Edited--
|
No problem man, glad to help out.
|
| All times are GMT -4. The time now is 16:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.