| 123456789101112131415161718192021222324252627282930 |
- #include <YSI_Coding\y_hooks>
- forward OnPlayerShotPlayer(playerid, hitid, weaponid);
- forward OnPlayerShotVehicle(playerid, vehicleid, weaponid);
- forward OnPlayerEnterJobCPoint(playerid);
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- switch(hittype)
- {
- case BULLET_HIT_TYPE_PLAYER:
- {
- CallRemoteFunction("OnPlayerShotPlayer", "iii", playerid, hitid, weaponid);
- }
- case BULLET_HIT_TYPE_VEHICLE:
- {
- CallRemoteFunction("OnPlayerShotVehicle", "iii", playerid, hitid, weaponid);
- }
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, STREAMER_TAG_CP:checkpointid)
- {
- if(IsCheckpointJobCheckpoint(playerid, checkpointid))
- {
- CallRemoteFunction("OnPlayerEnterJobCPoint", "i", playerid);
- }
- return 1;
- }
|