FANDOM


Ovaj callback dodan je u verziji SAMP 0.3z i nece raditi u prethodnim Edit

Ovaj callback je pozvan kada igraci upotrebi oruzije.

Parametri Edit

(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
playerid - ID igraca koji koristi oruzije
weaponid - ID oruzija koje igrac koristi
hittype - Tip pogodka (igrac, objekat, vozilo)
hitid - ID pogodka (igrac, objekat, vozilo)
fX - X-koordinata pogodka
fY - Y-koordinata pogodka
fZ - Z-koordinata pogodka
Returns
0 - Zaustavlja metak od izazivanja stete
1 - Dozvoljava metku da nacini stetu


NAPOMENA: Ako je hittype:
BULLET_HIT_TYPE_NONE: fX, fY i fZ parametri su normalne koordinate;
- ostali: fX, fY i fZ su koordinate iz centra pogodka.
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    new szString[144];
    format(szString, sizeof(szString), "Weapon %i fired. hittype: %i   hitid: %i   pos: %f, %f, %f", weaponid, hittype, hitid, fX, fY, fZ);
    SendClientMessage(playerid, -1, szString);
 
    return 1;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.