08.03.2015, 16:51
If this is OnPlayerEnterVehicle, you can use this code:
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:
It also has other uses, as it clears every animation in progress when called, I believe that is what you want though.
Код:
ClearAnimations(playerid,1);
Код:
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; }