SA-MP Forums Archive
shield help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: shield help (/showthread.php?tid=499056)



shield help - 26_RUSSS - 06.03.2014

hello all. as do that shield not penetrated with this code pawn.
Код:
if(strcmp(cmd, "/shield", true) == 0)
         {
          if(IsPlayerConnected(playerid))
             {
                 if(PlayerInfo [playerid][pMember]== 34 || PlayerInfo [playerid][pLeader]== 34)
                 {
                   if(shield [playerid]== 0)
                    {
                     SetPlayerAttachedObject(playerid, 1, 18637, 14, 0.0, 0.0, 0.0, 0.0, 180.0, 180.0);
                     SetPlayerHealth(playerid,300);
                      shield [playerid]= 1;
                 }
                 else
                 {
                     RemovePlayerAttachedObject(playerid, 1);
                     SetPlayerHealth(playerid,50);
                     shield [playerid]= 0;
                 }
            }
          }
          return 1;
         }



Re: shield help - dannyk0ed - 06.03.2014

You mean it doesn't show on the body?


Re: shield help - 26_RUSSS - 06.03.2014

I have mind shield breaks , and do as one can that not penetrated shield when dressed its?


Re: shield help - 26_RUSSS - 10.03.2014

upppp


Re: shield help - GalaxyHostFree - 10.03.2014

What you mean by "and do as one can that not penetrated shield when dressed its?"

Do you mean you already have attached object on that part of the body and you want another object to attached on the same body part?

Or your code is not working properly?