evo nasao sam jedan zanimljiv include na SA:MP Forumu, radi se o tome da mozete unistit vozilo ikao nije vozac u njemu!
Originalna tema: http://forum.sa-mp.com/showthread.php?t=187259
Autor: The_Moddler
Opis:
Damage Car System V2.5
Usage:
Extractajte fajlove u was 'pawno/include' folder, otvorite vas GM i dodajte na vrh moda: #include
Mozete promjeniti neke konfiguracije u damage.inc and podesiti ga po svom ukusu.
Morate ukljuÄiti one callbacks, ako ne, dobit ćete errore.
public OnPlayerShotVehicle(playerid, vehicleid)
{
//your code here...
printf("playerid %d is shooting vehicleid %d", playerid, vehicleid);
return 1;
}
public OnPlayerUnShotVehicle(playerid, vehicleid)
{
//your code here...
printf("playerid %d stopped shooting vehicleid %d", playerid, vehicleid);
return 1;
}
Morat ćete dodati ovo pod njihove callbackove:
D_OnPlayerConnect(playerid); //Under OnPlayerConnect
D_OnPlayerDisconnect(playerid); //Under OnPlayerDisconnect
D_OnPlayerKeyStateChange(playerid, newkeys, oldkeys); //Under OnPlayerKeyStateChange
To je sve, ako niste nesto stavili dobit cete warninge!
Functions:
Samo je jedna za sad!
IsPlayerShootingVehicle(playerid);
Returnat će 0 ako je igrac u vozilu
if(IsPlayerShooting(playerid))
{
printf("playerid %d is shooting vehicleid %d", playerid, IsPlayerShooting(playerid));
}
Bugs:
» Ne radi sa rifle, shotgun, i s nekim oruzijima
» Mozete ostetit auto kroz zid.
» ako je puno auta zajedno, mozda nece raditi.
Special thanks:
niCe for the IsPlayerAimingAt.
For the guys who made IsVehicleOccupied and GetClosestVehicle.
And to g_aSlice for some helping 🙂
Links:
Solidfiles > Errors FIXED. <
Version history:
V2.5: Popravljen bug kad auto eksplodira, sad ce se resapwnati ako je health manji od 250, popravljeni errori, dodan damage na auto.
V2.0: Dodani callbackovi i funkcije
V1.0: Samo scripta

lijepo je sto se trudis i punis ovaj board 🙂