| Blockland Forums > Modification Help |
| Compiled my coding questions into one topic for less spam. Updated:1/3/11 |
| (1/4) > >> |
| Lugnut:
I understand that it is as follows to send a message to every client in the server: messageall('',%text); However, I wish to utilize the first argument, yet modifying it seems to do nothing. What is it for? Secondly, the following command will permanently ban a person with the id of '1' with a reason of "Reason". What is the first argument, with a value of 0, for? commandtoserver('ban',0,1,-1,"Reason"); 1/3/11 How would I add an item to a players inventory? Not mounting it through mountimage() but ADDING it |
| Amade:
1: That is the message type. The only example of a registered message type I can think of off the top of my head is MsgAdminForce, which will cause a sound to be played on receiving clients. 2: That would be the object ID of the victim client. |
| Lugnut:
--- Quote from: Amade on January 02, 2012, 09:02:17 PM ---2: That would be the object ID of the victim client. --- End quote --- How would this help me? If I somehow didn't have the bl_id or something, I could do talk(findclientbyname(target)); and put the result there? Sounds like a lot of work. |
| FFSO:
Arguments for 'ban' argument 1 means the player name argument 2 means the ID argument 3 means the time of the ban and argument 4 is a one letter word that identifies the ban reason. |
| Orthone:
--- Quote from: FFSO on January 02, 2012, 09:15:52 PM ---Arguments for 'ban' argument 1 means the player name argument 2 means the ID argument 3 means the time of the ban and argument 4 is a one letter word that identifies the ban reason. --- End quote --- string that identifies the ban reason* |
| Navigation |
| Message Index |
| Next page |