29.07.2009, 08:36
Im trying to add the function to place a ramp infront of the player using "onplayercommandtext"
heres what i have.
Now whats happening is the ramps are being placed, except that when their placed, depending on the angle of the player, they can differ positions.
Can anyone let me know how i can fix this? as im not that good at scripting yet. And cant seem to figure out how to fix it.
heres what i have.
Quote:
if(strcmp(cmdtext, "/putramp", true)==0){ new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); CreateObject(1634, X+5, Y, Z, 0.0, 0.0, A); return 1; } |
Can anyone let me know how i can fix this? as im not that good at scripting yet. And cant seem to figure out how to fix it.