OnPlayerShot A Dynamic Vehicle
#1

I have this vehicle streammer:
https://sampforum.blast.hk/showthread.php?tid=580937

Is that possible to GetDynamicVehicleID on a shot (to remove vehicle health from unocupped vehicles and make a anti cheat)...
But GetPlayerDynamicVehicleID(playerid); get dynamicvehicleID from the vechile player is driving...

How to make it? I've tried:
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ) {
    if(
hittype == BULLET_HIT_TYPE_VEHICLE
    {
        new 
vehid hitid;
        new 
string[80];
        
format(stringsizeof(string), "Vehicle Shotted %i Weapon %i."vehidweaponid);
        
SendClientMessage(playeridCOLOR_NEWSstring);
    }

To test, i know i trying
new vehid = hitid;
Get the current vehicle ID, not dynamic ID

But nothing print when i shot a car, nothing happen...
Reply


Messages In This Thread
OnPlayerShot A Dynamic Vehicle - by maikons - 27.12.2017, 02:14
Re: OnPlayerShot A Dynamic Vehicle - by JaKe Elite - 27.12.2017, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)