I can not get in the car
#4

If this is OnPlayerEnterVehicle, you can use this code:

Код:
ClearAnimations(playerid,1);
To clear the animation of entering the vehicle, this, essentially, stops a player from entering a vehicle if you don't want them too, heres an example of it from my house and car script I'm coding:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new pName[24];
	GetPlayerName(playerid,pName,24);
	if(vData[vehicleid][vPublic] == 0 && strcmp(vData[vehicleid][vOwner],pName) == 0 && ispassenger == 0 && vData[vehicleid][vLocked] == 1) {
		ClearAnimations(playerid,1);
		SendClientMessage(playerid,-1,"This isn't your car!");
		return 0;
	}
	return 1;
}
It also has other uses, as it clears every animation in progress when called, I believe that is what you want though.
Reply


Messages In This Thread
I can not get in the car - by radiobizza - 07.03.2015, 18:24
Re: I can not get in the car - by X337 - 08.03.2015, 03:18
Re: I can not get in the car - by radiobizza - 08.03.2015, 16:27
Re: I can not get in the car - by Zonoya - 08.03.2015, 16:51
Re: I can not get in the car - by radiobizza - 10.03.2015, 21:40
Re: I can not get in the car - by Evocator - 10.03.2015, 22:09
Re: I can not get in the car - by radiobizza - 19.03.2015, 12:24
AW: Re: I can not get in the car - by Kaliber - 19.03.2015, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)