19.01.2011, 17:15
Код:
new Float:plyArmour; GetPlayerArmour(playerid, plyArmour); if(plyArmour != 0) { SetPlayerArmour(playerid, 0); vehTrunkArmour[result] = plyArmour; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s takes off his/her body armour and puts it into car trunk.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SaveTrunk(); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You haven't got any armour "); return 1; } }