22.02.2012, 22:11
can Helps You
#define Armour_INDEX 5
#define Armour_INDEX 5
Code:
forward ArmourUpdate(); public ArmourUpdate() { for(new i=0; i<=GetMaxPlayers(); i++) { GetPlayerArmour(i, ArmourStats[i]); if( ArmourStats[i] > 0.0 && ArmourUsed[i] == 0) { ArmourUsed[i] = 1; SetPlayerAttachedObject(i, Armour_INDEX, 373, 1, 0.286006, -0.038657, -0.158132, 67.128456, 21.916156, 33.972290, 1.000000, 1.000000, 1.000000 ); } else if( ArmourStats[i] == 0.0 && ArmourUsed[i] == 1) { ArmourUsed[i] = 0; RemovePlayerAttachedObject(i, Armour_INDEX); } } return 1; }