10-21-2017, 12:26 AM
(This post was last modified: 10-21-2017, 12:27 AM by [Ds]PwN3R_B0T Edited 2 times in total.)
(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;
}