SA-MP Forums Archive
Need a bit of help in Pawno. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need a bit of help in Pawno. (/showthread.php?tid=589239)



Need a bit of help in Pawno. - wazpopin - 17.09.2015

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.


AW: Need a bit of help in Pawno. - Kaliber - 17.09.2015

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 



Respuesta: Need a bit of help in Pawno. - wazpopin - 17.09.2015

Thanks for the help, +rep.