11.05.2015, 21:45
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:
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..
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; }