19.06.2015, 23:33
I want to hook CreateVehicle to print a console message every time it's called.
This is my code now, but when I call CreateVehicle, the message is not printed in the console.
Any ideas?
Код:
stock CreateVehicleEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0) { print("vehicle spawned from hook"); return CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay, addsiren); } #define CreateVehicle CreateVehicleEx
Any ideas?