ramping bugged
#3

Quote:
Originally Posted by [WsR
RyDeR ]
Take an example of this. I made this months before:
Код:
#include <a_samp>

new bool:CreatedRamp[MAX_PLAYERS];
new Ramp;

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Ramp Spawning by [WsR]RyDeR - Loaded -");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	new i = 0;
	while(i < MAX_PLAYERS)
	{
		CreatedRamp[i] = false;
		DestroyPlayerObject(i, Ramp);
		i++;
	}
	return 1;
}

public OnPlayerDisconnect(playerid)
{
	if(CreatedRamp[playerid] == true) DestroyPlayerObject(playerid, Ramp), CreatedRamp[playerid] = false;
	CreatedRamp[playerid] = false;
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (IsPlayerInAnyVehicle(playerid))
	{
		if(newkeys == KEY_FIRE)
		{
		  if(CreatedRamp[playerid] == true) DestroyPlayerObject(playerid, Ramp), CreatedRamp[playerid] = false;
			new Float:pX,Float:pY,Float:pZ,Float:vA, Arabam = GetPlayerVehicleID(playerid);
			GetVehiclePos(Arabam, pX, pY, pZ);
			GetVehicleZAngle(Arabam, vA);
			Ramp = CreatePlayerObject(playerid, 1632, pX + (20.0 * floatsin(-vA, degrees)), pY + (20.0 * floatcos(-vA, degrees)), pZ, 0, 0, vA);
			CreatedRamp[playerid] = true;
		}
	}
	return 1;
}
mine is same as you when if it is ramp but when i enter the id of the road so the road is towards right side like this __<road shape i want it like that | my road shape
| <my car shape | my shape

hope so you can.
Reply


Messages In This Thread
ramping bugged - by _Sami_ - 02.12.2009, 09:08
Re: ramping bugged - by RyDeR` - 02.12.2009, 12:06
Re: ramping bugged - by _Sami_ - 02.12.2009, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)