Advertisement
Guest User

Vojna sistem by Ile Popivanov

a guest
Jul 1st, 2015
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.18 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////
  2. //   CCCCC   RRRRR  EEEEEE  DDDDD     IIIIII   TTTTTTTT   SSSSSSS    //
  3. //  CC       R   R  EE      D    DD     II        TT     SS          //
  4. //  CC       RRRRR  EEEEE   D     DD    II        TT      SSSSSS     //
  5. //  CC       R R    EE      D    DD     II        TT           SS    //
  6. //   CCCCC   R   R  EEEEEE  DDDDD     IIIIII      TT      SSSSSS     //
  7. ///////////////////////////////////////////////////////////////////////
  8. //                                                                   //
  9. //                   www.sa-mp.com ZA a_samp                         //
  10. //                        ZeeX ZA ZCMD                               //
  11. //        SKRIPTA - Ile Popivanov www.fb.com/ile3popivanov           //
  12. //                                                                   //
  13. ///////////////////////////////////////////////////////////////////////
  14.  
  15. #include <a_samp>
  16. #include <zcmd>
  17.  
  18. new lcnobjekt, yakuzaobjekt;
  19. new lcnsila, yakuzasila;
  20. new lcnpoeni, yakuzapoeni;
  21. new Text3D:lcntekst, Text3D:yakuzatekst;
  22.  
  23. new hpnametak = 3;//za hp kolku da se trose
  24. new sila = 10000;// za sila
  25.  
  26. public OnFilterScriptInit()
  27. {
  28.     print("\n--------------------------------------");
  29.     print("Vojna sistem LCN vs Yakuza by Ile Popivanov");
  30.     print("--------------------------------------\n");
  31.     lcnsila = sila;
  32.     yakuzasila = sila;
  33.     lcnobjekt = CreateObject(8131, 1174.97522, -2037.02454, 78.46204,   0.00000, 0.00000, 90.00000);
  34.     yakuzaobjekt = CreateObject(8131, 754.95361, -1259.50476, 22.96799,   0.00000, 0.00000, 0.00000);
  35.     lcntekst = Create3DTextLabel("Kristal krv:\n10000", -1, 1174.97522, -2037.02454, 78.46204, 60.0, 0);//smeni i tuka za sila (ako menis voopsto xD)
  36.     yakuzatekst = Create3DTextLabel("Kristal krv:\n10000", -1, 754.95361, -1259.50476, 22.96799, 60.0, 0);//smeni i tuka za sila (ako menis voopsto xD)
  37.     return 1;
  38. }
  39.  
  40. public OnFilterScriptExit()
  41. {
  42.     DestroyObject(lcnobjekt);
  43.     DestroyObject(yakuzaobjekt);
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  48. {
  49.     if(hittype == BULLET_HIT_TYPE_OBJECT)
  50.     {
  51.         if(hitid == lcnobjekt)
  52.         {
  53.             new string[150];
  54.             if(lcnsila > 1)
  55.             {
  56.                 lcnsila-=hpnametak;
  57.                 format(string, sizeof(string), "Kristal krv:\n%d", lcnsila);
  58.                 Update3DTextLabelText(lcntekst, -1, string);
  59.             }
  60.             else if(lcnsila <= 1)
  61.             {
  62.                 lcnsila = sila;
  63.                 yakuzapoeni++;
  64.                 format(string, sizeof(string), "{25CD29}INFO:{FFFFFF}Yakuza go unistija kristalot na LCN. Plus 1 poen za Yakuza. | Yakuza:%d / LCN:%d",yakuzapoeni, lcnpoeni);
  65.                 SendClientMessageToAll(-1, string);
  66.                 format(string, sizeof(string), "Kristal krv:\n%d", lcnsila);
  67.                 Update3DTextLabelText(lcntekst, -1, string);
  68.             }
  69.         }
  70.         if(hitid == yakuzaobjekt)
  71.         {
  72.             new string[150];
  73.             if(yakuzasila > 1)
  74.             {
  75.                 yakuzasila-=hpnametak;
  76.                 format(string, sizeof(string), "Kristal krv:\n%d", yakuzasila);
  77.                 Update3DTextLabelText(yakuzatekst, -1, string);
  78.             }
  79.             else if(yakuzasila <= 1)
  80.             {
  81.                 yakuzasila = sila;
  82.                 lcnpoeni++;
  83.                 format(string, sizeof(string), "{25CD29}INFO:{FFFFFF}LCN go unistija kristalot na Yakuza. Plus 1 poen za LCN. | Yakuza:%d / LCN:%d",yakuzapoeni, lcnpoeni);
  84.                 SendClientMessageToAll(-1, string);
  85.                 format(string, sizeof(string), "Kristal krv:\n%d", yakuzasila);
  86.                 Update3DTextLabelText(yakuzatekst, -1, string);
  87.             }
  88.         }
  89.     }
  90.     return 1;
  91. }
  92. CMD:vojna(playerid, params[])
  93. {
  94.     new string[100];
  95.     SendClientMessage(playerid, -1, "___________KRV___________");
  96.     format(string, sizeof(string), "LCN Kristal krv: %d", lcnsila);
  97.     SendClientMessage(playerid, -1, string);
  98.     format(string, sizeof(string), "Yakuza Kristal krv: %d", yakuzasila);
  99.     SendClientMessage(playerid, -1, string);
  100.     SendClientMessage(playerid, -1, "__________POENI__________");
  101.     format(string, sizeof(string), "LCN Poeni: %d", lcnpoeni);
  102.     SendClientMessage(playerid, -1, string);
  103.     format(string, sizeof(string), "Yakuza Poeni: %d", yakuzapoeni);
  104.     SendClientMessage(playerid, -1, string);
  105.     return 1;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement