• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] PLAYER_EVENT_ON_COMMAND Not working ?

Status
Not open for further replies.

xanklin

Emulation Addict
Hello, please is PLAYER_EVENT_ON_COMMAND working ?
Becouse something like this script
Code:
function test123(event, player, command)
		player:Say("OMG",0)		
end

RegisterPlayerEvent(42, test123)
is not working, i dont know, can someone help me ?
Thanks.
 

xanklin

Emulation Addict
And, how can i apply this for existing commands ? Thank you.
[For example if player used .mod speed 10]
 

Rochet2

Moderator / Eluna Dev
The hook triggers only if the command does not match to any existing C++ scripted command.
What did you type ingame when you tried testing the script you posted?
 

xanklin

Emulation Addict
The hook triggers only if the command does not match to any existing C++ scripted command.
It said all, so it is working as it should work.
But, i wanted to script something when player use existing command
(for automute if spamming)
 
Status
Not open for further replies.
Top