Need help with ramp spawning
#1

Im trying to add the function to place a ramp infront of the player using "onplayercommandtext"
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;
}

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.
Reply


Messages In This Thread
Need help with ramp spawning - by chaosnz - 29.07.2009, 08:36
Re: Need help with ramp spawning - by JadedJ - 29.07.2009, 11:13
Re: Need help with ramp spawning - by NeRoSiS - 29.07.2009, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)