incearca: [pawn] 2894: //--------------------------------------------------------------------------------------------------------- 2895: PutRiotShieldOnBack(playerid) 2896: { 2897: if(IsPlayerAttachedObjectSlotUsed(playerid,1) ) { RemovePlayerAttachedObject(playerid,1); } 2898: else { SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1); } 2899: } 2900: 2901: PutRiotShieldOnArm(playerid) 2901: { 2902: if(IsPlayerAttachedObjectSlotUsed(playerid,1) ) { RemovePlayerAttachedObject(playerid,1); } 2903: else { SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1); } 2904: } 2905: 2906: GiveFlashLight(playerid) 2907: { 2908: if(IsPlayerAttachedObjectSlotUsed(playerid,2)) if { RemovePlayerAttachedObject(playerid,2); } 2909: else { SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1); } 2910: } 2911: 2912: GiveTazer(playerid) 2912: { 2913: if(IsPlayerAttachedObjectSlotUsed(playerid,2)) if { RemovePlayerAttachedObject(playerid,2); } 2914: else { SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1); } 2915: } [/pawn]