Login Issues
Activate Issues
Other Problems?
#using scripts\zm\_zm_score;function main(){ // INIT armor = getEnt("armor_model", "targetname"); armor_model = "viewmodel_armored_player"; // le wiewmodel apres achat de l'armure viewhands_armor = "viewhands_armored_hands"; // les mains après achat de l'armure trig_armor = getEnt("armor_trig", "targetname"); trig_armor setCursorHint("HINT_NOICON"); trig_armor SetHintString("Maintenez &&1 pour prendre l'armure"); cost = 2000; // Coût de l'armure mettre à '0' pour mettre gratuit. thread waittill_player(trig_armor, armor_model, viewhands_armor);}Function waittill_player(trig, model, viewhands){ trig waittill("trigger", player); if(player.score >= cost) { player zm_score::minus_to_player_score(cost); break; } wait 0.1; thread get_armor(player, model);}function get_armor(player, model, viewhands){ //player SetViewModel(model); // test //player SetOffhandVisible(viewhands); // test}