Las Venturas Playground
[Idea/Script] Anti Fake Car Entry (No! it doesn't ban you!) - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: [Idea/Script] Anti Fake Car Entry (No! it doesn't ban you!) (/thread-34024.html)

Pages: 1 2 3 4 5


RE: [Idea/Script] Anti Fake Car Entry (No! it doesn't ban you!) - [Ds]PwN3R_B0T - 10-21-2017

(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)


RE: [Idea/Script] Anti Fake Car Entry (No! it doesn't ban you!) - Yassine - 10-21-2017

(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