PlayerSound - Kick
#4

24600 is the sound id of the car door its handle being pulled, but can't manage to open it.

You can use ClearAnimations(playerid); to stop any animations, making the player stand still, so here's this:
Код:
(Using "PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z)"
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetPlayerVehicleID(playerid) == THEVEHIDLEIDOFTHECARTHEPLAYERCANTENTER)
	{
		ClearAnimations(playerid);
		SendClientMessage(playerid, -1, "{FF0000}You can not enter this vehicle!");
		PlayerPlaySound(playerid, 24600, 0.0, 0.0, 0.0);
	}
	return 1;
}
To make it a little better, you could try getting the player pos and changing the 3 "0.0"'s to the players position, isn't needed but yeah..
Reply


Messages In This Thread
PlayerSound - Kick - by Zloto - 11.05.2015, 21:28
Re: PlayerSound - Kick - by Abagail - 11.05.2015, 21:38
Re: PlayerSound - Kick - by Zloto - 11.05.2015, 21:40
Re: PlayerSound - Kick - by JaydenJason - 11.05.2015, 21:45
Re: PlayerSound - Kick - by Zloto - 11.05.2015, 21:49
Re: PlayerSound - Kick - by MP2 - 11.05.2015, 22:20
Re: PlayerSound - Kick - by Abagail - 11.05.2015, 22:23
Re: PlayerSound - Kick - by Zloto - 11.05.2015, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)