10-21-2017, 05:54 PM
(10-21-2017, 12:26 AM)[BkM]PwN3R_BoSs Wrote:(10-19-2017, 09:16 PM)Yassine Wrote:Yassine I really don't get the point of your post...Ammarz code works just fine, same as mine does (which is just working without any timers), while yours doesn't make sense at all (since for example we didn't create a function called "DamageManager" at all)Code:public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(DamageManager(playerid)->isPlayerFighting())
{
ClearAnimations(playerid);
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, Color::Error, "*Error: {FFFFFF}You can't enter in a car while you are in a fight or fired a weapon!");
}
return 1;
}
That code is working fine with LVP script while yours isnt.
github.com/LVPlayground/playground
there's a DamageManager