Put an object on players location
#2

This is not a script request place, but however I can give you some tips.

Get the house object ID you want to make it appear, then define x,y,z with

pawn Код:
new Float:x,Float:y,Float:z
Then, get the Player's Pos by GetPlayerPos, then create the object on player's coordinates, search wiki for usage of the functions.

These are the URLs:

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/Floats
https://sampwiki.blast.hk/wiki/Model_ID

Dont forget the put a + to player's pos while creating the object our player might end up getting stuck in the house.
Reply


Messages In This Thread
Put an object on players location - by XlimitXstudio - 10.06.2014, 14:59
Re: Put an object on players location - by Rufio - 10.06.2014, 15:20
Re: Put an object on players location - by Rittik - 10.06.2014, 15:29
Re: Put an object on players location - by XlimitXstudio - 10.06.2014, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)