Help me with /beginevent command
#1

Код:
cmd:beginevent(playerid, params[])
{
        new rand = Random(1, 99);
	if(EventCars[rand] == INVALID_VEHICLE_ID)
        {
	        new Float:x, Float:y, Float:z;
		new Float:Angle;
		GetPlayerFacingAngle(i, Angle);
		GetPlayerPos(i, x, y, z);
		EventCars[rand] = CreateVehicle(Events[EventCar], x,y,z+2,Angle,-1,-1,VEHICLE_RESPAWN);
		VehicleFuel[EventCars[rand]] = 100.0;
		Vehicle_ResetData(EventCars[rand]);
		PutPlayerInVehicle(i, EventCars[rand], 0);
		SetPlayerHealth(i, Events[Health]);
		SetPlayerArmor(i, Events[Armor]);
		CarShooting[i] = 1;

	}
}

new EventCars[100] = INVALID_VEHICLE_ID;
I dont know why but when I set up all the event type and bla bla bla. Then I use /beginevent to create a car then I can enjoy my event. But when I use /beginevent there's nothing happen. I dont know why ? Please help me
Reply


Messages In This Thread
Help me with /beginevent command - by Kenxxx - 22.04.2016, 07:07
Re: Help me with /beginevent command - by XtremeRz - 22.04.2016, 07:21
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 07:24
Re: Help me with /beginevent command - by oMa37 - 22.04.2016, 07:47
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 08:49
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 09:44
Re: Help me with /beginevent command - by Sew_Sumi - 22.04.2016, 09:52
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 10:15
Re: Help me with /beginevent command - by Konstantinos - 22.04.2016, 10:22
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)