27.12.2017, 02:14
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:
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...
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(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{
new vehid = hitid;
new string[80];
format(string, sizeof(string), "Vehicle Shotted %i Weapon %i.", vehid, weaponid);
SendClientMessage(playerid, COLOR_NEWS, string);
}
}
new vehid = hitid;
Get the current vehicle ID, not dynamic ID
But nothing print when i shot a car, nothing happen...