Spawn MAX 3 Objects with MMB
#9

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(PRESSED(KEY_LOOK_BEHIND))
	{
	if(ObjectCount[playerid] < 4)
	    {
			new Float:angle,Float:x,Float:y,Float:z;
			GetPlayerPos(playerid, x, y, z);
			angle = GetXYInFrontOfPlayer(playerid, x, y, GetOptimumRampDistance(playerid));
			angle -= 90.0;
   			if (angle < 0.0) angle += 360.0;
			z += 0.5;
			ramp=CreateObject(800, x, y, z - 0.1, 0.0, 0.0, angle+90);
			SetTimer("ramptimer",10000,0);
			ObjectCount[playerid]++;
		}
	}
	return 1;
}
How i can delete the objects ?
Reply


Messages In This Thread
Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 09.10.2011, 12:49
Re: Spawn MAX 3 Objects with MMB - by TheLonelyBeast - 09.10.2011, 13:00
AW: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 09.10.2011, 13:45
AW: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 09.10.2011, 19:46
Re: Spawn MAX 3 Objects with MMB - by Donuts - 09.10.2011, 21:43
AW: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 10.10.2011, 09:21
AW: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 10.10.2011, 13:52
Re: Spawn MAX 3 Objects with MMB - by Dragony92 - 10.10.2011, 14:12
Re: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 12.10.2011, 11:54
Re: Spawn MAX 3 Objects with MMB - by [RLG]Zepp - 13.10.2011, 06:58

Forum Jump:


Users browsing this thread: 1 Guest(s)