help?
#9

Код:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
Your model id is 481 - okey.
X, Y, Z - position where to create NRG.
Angle - rotation of the bike.
color1, color2 - colours of the vehicle.
respawn_delay - in what time vehicle will respawn after player exit it.

We need to get player position X, Y, Z and (optional) angle.

You need to create variables wich will save float.
pawn Код:
new Float:X, Float:Y, Float:Z, Float:Angle;
then use a function https://sampwiki.blast.hk/wiki/Function:GetPlayerPos to get X, Y, Z and https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle to get player rotation (remember it's optional)

Then after you get position and rotation of player put variables X, Y, Z, Angle into values of CreateVehicle.
Reply


Messages In This Thread
help? - by xbox360boy66 - 18.08.2011, 12:25
Re: help? - by Riddick94 - 18.08.2011, 12:27
Re: help? - by xbox360boy66 - 18.08.2011, 12:35
Re: help? - by xbox360boy66 - 18.08.2011, 12:37
Re: help? - by Riddick94 - 18.08.2011, 12:40
Re: help? - by xbox360boy66 - 18.08.2011, 12:47
Re: help? - by Riddick94 - 18.08.2011, 12:56
Re: help? - by xbox360boy66 - 18.08.2011, 13:07
Re: help? - by Riddick94 - 18.08.2011, 13:16
Re: help? - by xbox360boy66 - 18.08.2011, 13:21
Re: help? - by Riddick94 - 18.08.2011, 13:23
Re: help? - by xbox360boy66 - 18.08.2011, 13:33
Re: help? - by xbox360boy66 - 18.08.2011, 13:43
Re: help? - by Riddick94 - 18.08.2011, 13:45
Re: help? - by xbox360boy66 - 18.08.2011, 14:06
Re: help? - by Riddick94 - 18.08.2011, 14:11
Re: help? - by doreto - 18.08.2011, 14:17
Re: help? - by xbox360boy66 - 18.08.2011, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)