PDA

View Full Version : Where can i get the cordinates and object id?


Don_Cage
21/03/2013, 04:32 PM
I got this /smoke command and i want it to give the player the cigarr object in his hand when he use it and if you press on left mouse button he will take a smoke from the cigarr. Anyone of you could give me cordinates and object id for the cigarr? and give me an example on how to do the other part?

Jstylezzz
21/03/2013, 05:23 PM
SetPlayerSpecialAction will do the trick. Set the special action to smoke, and the player can smoke if he presses mouse.

Don_Cage
21/03/2013, 05:36 PM
but where can i get the cigar etc from?

Jstylezzz
21/03/2013, 05:42 PM
SetPlayerHoldingObject (http://wiki.sa-mp.com/wiki/SetPlayerHoldingObject)if I'm correct.