Need a bit of help in Pawno.
#2

For example like this:

PHP Code:
//In the /gravity command:
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z),GetPlayerFacingAngle(playerid,a);
const 
Float:distance 3.0//The distance from the player & the tag
+= distance floatsin(-a,degrees); //To set the object in front of the player
+= distance floatcos(-a,degrees); //To set the object in front of the player
CreateObject(18659,x,y,z,0,0,0); //18659 = the model of the grove spray tag 
Reply


Messages In This Thread
Need a bit of help in Pawno. - by wazpopin - 17.09.2015, 00:03
AW: Need a bit of help in Pawno. - by Kaliber - 17.09.2015, 00:09
Respuesta: Need a bit of help in Pawno. - by wazpopin - 17.09.2015, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)