Szerző Téma: Fal lövés ● Counter-Strike 1.6 féle  (Megtekintve 1386 alkalommal)

Nem elérhető ZoleBB

  • 480
  • ZoleBB
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Dátum: 2014. Február 27. - 19:58:40 »
0 Show voters
Fal lövés
 
  • Ez a filterszkript ara szólgál, hogy: Mikor a falra tüzelsz, azon a falon áttmegy, és ha a közelébe van egy játékos akor eltalálja.

Eredeti készítõ:SupermaN
 

 
#include <a_samp>
 
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" WallShot 1.0 készítette: SupermaN betöltve !\");
print(\" WallShot 1.0 Fordította: citromhun(.so) !\");
print(\"--------------------------------------\\n\");
ConnectedPlayers = 0;
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
#endif
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID)
{
return SendClientMessage(playerid,-1,\" \");
}
    return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == 1)
{
}
else
{
    new szString[144];
    new str1[256];
    format(szString, sizeof(szString), \"Fegyver: %i. HIT(EK): %i   HIT: %i   Pozíció: %f, %f, %f\", weaponid, hittype, hitid, fX, fY, fZ);
    //SendClientMessage(playerid, -1, szString);
    if(fX < 2 && fY < 2 && fZ < 2 && fX > -2 && fY > -2 && fZ > -2)
    {
    }
    else
{
//HIT ÉRZÉKELÉS
new pid = playerid;
//SendClientMessage(playerid,-1,\"DEBUGPOINT:1\");
for(new j = 0;j<MAX_PLAYERS;j++)
{
//SendClientMessage(playerid,-1,\"DEBUGPOINT:2\");
if(IsPlayerConnected(j))
{
        //SendClientMessage(playerid,-1,\"DEBUGPOINT:3\");
   if(j == playerid)
   {
            //SendClientMessage(playerid,-1,\"DEBUGPOINT:PLAYER-ID\");
   }
   else
   {
       //SendClientMessage(playerid,-1,\"DEBUGPOINT:4\");
      new Float:pX,Float:pZ,Float:pY;
      new pX2,pZ2,pY2;
      new fX2,fZ2,fY2;
      GetPlayerPos(j,pX,pY,pZ);
      pX2 = floatround(pX,floatround_round);
      pY2 = floatround(pY,floatround_round);
      pZ2 = floatround(pZ,floatround_round);
      fX2 = floatround(fX,floatround_round);
      fY2 = floatround(fY,floatround_round);
      fZ2 = floatround(fZ,floatround_round);
 
      if(fX2 < 0 && pX2 > 0)
      {
      fX2 = fX2 * -1;
      }
      if(fX2 > 0 && pX2 < 0)
      {
      fX2 = fX2 * -1;
      }
      if(fY2 < 0 && pY2 > 0)
      {
      fY2 = fY2 * -1;
      }
      if(fY2 > 0 && pY2 < 0)
      {
      fY2 = fY2 * -1;
      }
      if(fZ2 < 0 && pZ2 > 0)
      {
      fZ2 = fZ2 * -1;
      }
      if(fZ2 > 0 && pZ2 < 0)
      {
      fZ2 = fZ2 * -1;
      }
      new strsend[256];
      format(strsend,256,\"Player Pozíció: %i , %i , %i Lövés pozíció: %i , %i , %i\",pX2,pY2,pZ2,fX2,fY2,fZ2);
      //SendClientMessage(playerid,-1,strsend);
      if((pY2 - fY2) < 5 && (pZ2 - fZ2) < 5 &&(pY2 - fY2) > -5 && (pZ2 - fZ2) > -5)
      {
      //PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
      //SendClientMessage(playerid,-1,\"hit\");
         switch(weaponid)
         {
             case 22:
            {
            minushealth(j,playerid,2,22);
            }
             case 23:
            {
            minushealth(j,playerid,2,23);
            }
            case 24:
            {
            minushealth(j,playerid,45,24);
            }
            case 25:
            {
                        minushealth(j,playerid,10,25);
            }
            case 26:
            {
            minushealth(j,playerid,10,26);
            }
            case 27:
            {
            minushealth(j,playerid,10,27);
            }
            case 28:
            {
            minushealth(j,playerid,5,28);
            }
            case 29:
            {
            minushealth(j,playerid,7,29);
            }
            case 30:
            {
            minushealth(j,playerid,3,30);
            }
            case 31:
            {
            minushealth(j,playerid,6,31);
            }
            case 32:
            {
            minushealth(j,playerid,5,32);
            }
            case 33:
            {
            minushealth(j,playerid,25,33);
            }
            case 34:
            {
            minushealth(j,playerid,40,34);
            }
            case 38:
            {
            minushealth(j,playerid,50,38);
            }
         }
      }
   }
   }
}
//----------------------------------
}
}
    return 1;
}
minushealth(playerid,killerid,amount,reason)
{
new Float:health,Float:armour;
GetPlayerHealth(playerid,health);
GetPlayerArmour(playerid,armour);
if(armour >= amount)
{
SetPlayerArmour(playerid,armour-amount);
}
else if(armour > 0 && armour<amount)
{
amount = amount - armour;
SetPlayerArmour(playerid,0);
SetPlayerHealth(playerid,health - amount);
}
else if(armour < 1)
{
SetPlayerHealth(playerid,health - amount);
}
else if(health < amount)
{
SendDeathMessage(killerid, playerid,reason);
}
return 1;
}
« Utoljára szerkesztve: 2014. Február 27. - 20:41:36 írta citrom.so »

Nem elérhető TheDon

  • 159
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #1 Dátum: 2014. Február 27. - 20:04:24 »
0 Show voters
Idézetet írta: citrom.so date=1393527520\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46778\" data-ipsquote-contentclass=\"forums_Topic
print(\" WallShot 1.0 Fordította: citromhun(.so) !\");
Eleve nem sok fordítani való van ezen, de annak is csak a felét tetted meg.

Nem elérhető b1s

  • 2212
  • Faszidegbénulás
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #2 Dátum: 2014. Február 27. - 20:33:19 »
+2 Show voters
A videó link is rossz.
Spoiler for kruuk:
Így jobban hangzik   :yes:
« Utoljára szerkesztve: 2014. Február 27. - 20:44:14 írta cappsy »

Nem elérhető ZoleBB

  • 480
  • ZoleBB
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #3 Dátum: 2014. Február 27. - 20:37:22 »
0 Show voters
Idézetet írta: TheDon date=1393527864\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46778\" data-ipsquote-contentclass=\"forums_Topic

print(\" WallShot 1.0 Fordította: citromhun(.so) !\");
Eleve nem sok fordítani való van ezen, de annak is csak a felét tetted meg.
 
[/quote]
Örülök, hogy észrevetted.
 

A videó link is sz*r.
 
[/quote]
A videó link az eredeti topic-ban van.
De amúgy nagyon szerettek másokba belekötni, de mikor te beléd kötnek akor az fáj.
Videó URL linkjét pedig javítom.

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #4 Dátum: 2014. Február 27. - 20:43:04 »
0 Show voters
[gmod]Én is örülök, hogy észrevetted hogy írtak.. Ez nem kötekedés, szimplán a témát összecsaptad/nem figyeltél oda rá.[/gmod]

Nem elérhető TheDon

  • 159
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #5 Dátum: 2014. Február 27. - 21:16:09 »
0 Show voters
Idézetet írta: cappsy date=1393530184\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46778\" data-ipsquote-contentclass=\"forums_Topic
Én is örülök, hogy észrevetted hogy írtak.. Ez nem kötekedés, szimplán a témát összecsaptad/nem figyeltél oda rá.
 
Igen. Nem szokásom kötekedni. Azt amúgy is észre vennéd. Csak elmondtam, hogy milyen hiba van benne.
E: Ezt a témanyitónak írtam.

Nem elérhető ZoleBB

  • 480
  • ZoleBB
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #6 Dátum: 2014. Február 27. - 21:42:17 »
0 Show voters
Idézetet írta: TheDon date=1393532169\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46778\" data-ipsquote-contentclass=\"forums_Topic


Én is örülök, hogy észrevetted hogy írtak.. Ez nem kötekedés, szimplán a témát összecsaptad/nem figyeltél oda rá.
 
Igen. Nem szokásom kötekedni. Azt amúgy is észre vennéd. Csak elmondtam, hogy milyen hiba van benne.
E: Ezt a témanyitónak írtam.
 
[/quote]
Igen, az nem \"szúrta\" ki a szemem, hogy kifelejtettem azt ahonan lõttek stb.
« Utoljára szerkesztve: 2014. Február 27. - 22:23:45 írta cappsy »

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Fal lövés ● Counter-Strike 1.6 féle
« Válasz #7 Dátum: 2014. Február 27. - 22:24:23 »
0 Show voters
[gmod]Jó,ezt a témát itt zárjuk le.[/gmod]
Mostantól a kommentek a szkriptrõl szóljanak..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal