| Blockland Forums > Modification Help |
| Check clientsided-ly when a servercommand is sent |
| << < (2/4) > >> |
| Superb:
Well, when a person talks, this is called: WhoTalkSo::AddId(%this,%id) When a player stops talking, this is called: WhoTalkSo::RemoveId(%this,%id) Since i'm not entirely sure how to get names from the IDs (never needed to), you can probably package each of those functions and use chatWhosTalkingText.getValue(); to do some things. |
| Swollow:
so how do i client sided-ly check which id is being used when WhoTalkSo::AddId is called if(%id == IDHERE) doesn't appear to work |
| Superb:
--- Quote from: swollow on January 10, 2012, 11:23:46 PM ---so how do i client sided-ly check which id is being used when WhoTalkSo::AddId is called if(%id == IDHERE) doesn't appear to work --- End quote --- What type of ID are you talking about, and how are you getting their ID besides from what the AddId function supplies? Post all of your code please. |
| Swollow:
--- Quote from: Superb on January 10, 2012, 11:25:41 PM ---What type of ID are you talking about, and how are you getting their ID besides from what the AddId function supplies? Post all of your code please. --- End quote --- I relize now that the id wasn't the players id lol player id or player name would do also package HideGlobalNameFromChat { function whoTalkSO::addId(%this,%ID) { parent::addId(%this,%ID); if(%id == 6531) { commandtoserver('StopTalking'); } } } activatePackage(HideGlobalNameFromChat); |
| Superb:
Ok, now tell me exactly what this mod you have in mind is going to do, so i understand better. Also } activatePackage(HideGlobalNameFromChat); should be }; activatePackage(HideGlobalNameFromChat); |
| Navigation |
| Message Index |
| Next page |
| Previous page |