Hello There, Guest! Login or Register


[Idea/Script] Anti Fake Car Entry (No! it doesn't ban you!)
#41
(10-19-2017, 09:16 PM)Yassine Wrote:
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;
}
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)
Reply
#42
(10-21-2017, 12:26 AM)[BkM]PwN3R_BoSs Wrote:
(10-19-2017, 09:16 PM)Yassine Wrote:
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;
}
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)

That code is working fine with LVP script while yours isnt.

github.com/LVPlayground/playground

there's a DamageManager
Reply