RemoveEvent Shared function
Jump to navigation
Jump to search
This function was added in version: 0.0.0.0 |
NOTE! Events are special function, which are called when something specific happend. For example, when player join to the server, is called event named onPlayerJoin. |
Function remove/unregister existing event.
Syntax
void removeEvent(string name)
Required Arguments
- name: The name of event.
Example
Client
addEventHandler("onPlayerJoin",function(pid)
{
sendMessageToAll(0, 255, 0, getPlayerName(pid) + " connected with the server."); // this function will not be called
})
removeEvent("onPlayerJoin");