06.03.2014, 12:03
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; }