24.01.2015, 14:31
pawn Code:
MouseClick(playerid); // like SelectObject, and like in s-o-beit
ExitMouseClick(palyerid);
OnPlayerMouseClick(playerid, Type, ID, Float:X, Float:Y, Float:Z, click)
- 0 - Player
- 1 - NPC
- 2 - Vehicle
- 3 - Object
X, Y, Z - Returns the clicked thing's pos
click
- 0 - Left mouse click
- 1 - Right mouse click
- 2 - Middle mouse button