Need a bit of help in Pawno.
#1

So yeah, i'm a newbie in Pawno and i'm into a basic tag system, i'm just wanting to script it so when I put certain command the tag appears infront the player when he types the command.

For example, I type: /graffiti and a Grove Street tag appears infront of me, that's the thing I don't know how to type.
Reply
#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
#3

Thanks for the help, +rep.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)