Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////////////////////
- // CCCCC RRRRR EEEEEE DDDDD IIIIII TTTTTTTT SSSSSSS //
- // CC R R EE D DD II TT SS //
- // CC RRRRR EEEEE D DD II TT SSSSSS //
- // CC R R EE D DD II TT SS //
- // CCCCC R R EEEEEE DDDDD IIIIII TT SSSSSS //
- ///////////////////////////////////////////////////////////////////////
- // //
- // www.sa-mp.com ZA a_samp //
- // ZeeX ZA ZCMD //
- // SKRIPTA - Ile Popivanov www.fb.com/ile3popivanov //
- // //
- ///////////////////////////////////////////////////////////////////////
- #include <a_samp>
- #include <zcmd>
- new lcnobjekt, yakuzaobjekt;
- new lcnsila, yakuzasila;
- new lcnpoeni, yakuzapoeni;
- new Text3D:lcntekst, Text3D:yakuzatekst;
- new hpnametak = 3;//za hp kolku da se trose
- new sila = 10000;// za sila
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Vojna sistem LCN vs Yakuza by Ile Popivanov");
- print("--------------------------------------\n");
- lcnsila = sila;
- yakuzasila = sila;
- lcnobjekt = CreateObject(8131, 1174.97522, -2037.02454, 78.46204, 0.00000, 0.00000, 90.00000);
- yakuzaobjekt = CreateObject(8131, 754.95361, -1259.50476, 22.96799, 0.00000, 0.00000, 0.00000);
- lcntekst = Create3DTextLabel("Kristal krv:\n10000", -1, 1174.97522, -2037.02454, 78.46204, 60.0, 0);//smeni i tuka za sila (ako menis voopsto xD)
- yakuzatekst = Create3DTextLabel("Kristal krv:\n10000", -1, 754.95361, -1259.50476, 22.96799, 60.0, 0);//smeni i tuka za sila (ako menis voopsto xD)
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyObject(lcnobjekt);
- DestroyObject(yakuzaobjekt);
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(hittype == BULLET_HIT_TYPE_OBJECT)
- {
- if(hitid == lcnobjekt)
- {
- new string[150];
- if(lcnsila > 1)
- {
- lcnsila-=hpnametak;
- format(string, sizeof(string), "Kristal krv:\n%d", lcnsila);
- Update3DTextLabelText(lcntekst, -1, string);
- }
- else if(lcnsila <= 1)
- {
- lcnsila = sila;
- yakuzapoeni++;
- format(string, sizeof(string), "{25CD29}INFO:{FFFFFF}Yakuza go unistija kristalot na LCN. Plus 1 poen za Yakuza. | Yakuza:%d / LCN:%d",yakuzapoeni, lcnpoeni);
- SendClientMessageToAll(-1, string);
- format(string, sizeof(string), "Kristal krv:\n%d", lcnsila);
- Update3DTextLabelText(lcntekst, -1, string);
- }
- }
- if(hitid == yakuzaobjekt)
- {
- new string[150];
- if(yakuzasila > 1)
- {
- yakuzasila-=hpnametak;
- format(string, sizeof(string), "Kristal krv:\n%d", yakuzasila);
- Update3DTextLabelText(yakuzatekst, -1, string);
- }
- else if(yakuzasila <= 1)
- {
- yakuzasila = sila;
- lcnpoeni++;
- format(string, sizeof(string), "{25CD29}INFO:{FFFFFF}LCN go unistija kristalot na Yakuza. Plus 1 poen za LCN. | Yakuza:%d / LCN:%d",yakuzapoeni, lcnpoeni);
- SendClientMessageToAll(-1, string);
- format(string, sizeof(string), "Kristal krv:\n%d", yakuzasila);
- Update3DTextLabelText(yakuzatekst, -1, string);
- }
- }
- }
- return 1;
- }
- CMD:vojna(playerid, params[])
- {
- new string[100];
- SendClientMessage(playerid, -1, "___________KRV___________");
- format(string, sizeof(string), "LCN Kristal krv: %d", lcnsila);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "Yakuza Kristal krv: %d", yakuzasila);
- SendClientMessage(playerid, -1, string);
- SendClientMessage(playerid, -1, "__________POENI__________");
- format(string, sizeof(string), "LCN Poeni: %d", lcnpoeni);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "Yakuza Poeni: %d", yakuzapoeni);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement