Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerCommand(playerid, command)
- {
- local cmd = split(command, " ");
- if(cmd[0] == "/chat")
- {
- if(isChatVisible())
- {
- showChat( false );
- }else{
- showChat( true );
- }
- return 1;
- }
- return 0;
- }
- addEventHandler( "onPlayerCommand", playerCommand );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement