shield help
#1

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;
         }
Reply
#2

You mean it doesn't show on the body?
Reply
#3

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

upppp
Reply
#5

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?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)