Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****************************************************************
- [_¯B_¯u_¯l_¯l_¯e_¯t_¯ _¯D_¯r_¯o_¯p_¯ _¯S_¯y_¯s_¯t_¯e_¯m_¯]
- Powered by: Leonardo Bradoks
- Thanks for help: FerrariL & ForT & Carlos001 & RogerCosta
- Forum Thread: http://forum.sa-mp.com/showthread.php?p=4007719
- ****************************************************************/
- #include <a_samp>
- #define Municao_Amarela 19574
- #define Municao_Marrom 19575
- #define Municao_Verde 19576
- #define Municao_Vermelha 19577
- new Bala[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n-------------------------------------------------------------");
- print("- INITIALIZED BULLET DROP SYSTEM! -");
- print("- Thanks for help: FerrariL & ForT & Carlos001 & RogerCosta -");
- print("-------------------------------------------------------------\n");
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- if(Municao_Amarela <= GetObjectModel(objectid) <= Municao_Vermelha) {
- new Float:X, Float:Y, Float:Z;
- GetObjectPos(objectid, X, Y, Z);
- CreateExplosion(X, Y, Z, 12, 10.0);
- DestroyObject(objectid);
- }
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(GetPlayerWeapon(playerid) == 34) {
- new Float:fOriginX, Float:fOriginY, Float:fOriginZ, Float:fHitPosX, Float:fHitPosY, Float:fHitPosZ, Float:Distancia;
- GetPlayerLastShotVectors(playerid, fOriginX, fOriginY, fOriginZ, fHitPosX, fHitPosY, fHitPosZ);
- Bala[playerid] = CreateObject(Municao_Amarela, fOriginX-0.1, fOriginY, fOriginZ+0.2, 0, 0, 0);
- Distancia = GetPlayerDistanceFromPoint(playerid, fHitPosX, fHitPosY, fHitPosZ);
- MoveObject(Bala[playerid], fHitPosX, fHitPosY, fHitPosZ-(Distancia < 20 ? (Distancia/51) : Distancia > 80 ? (Distancia/25) : (Distancia/50)) , 85.0, 0, 0, 0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement