Opiszę może plugin. Gdy admin wpisze komendę to dostaje bronie. Ja chciałbym, żeby to CT dostawało bronie.
Już trochę sam przerobiłem. SMA:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "AdminFreeWeapon"
#define VERSION "0.2"
#define AUTHOR "KmP'eR"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd ("/dajbron","")
}
public free_weapon(id){
if(access(id,ADMIN_LEVEL_C)){
give_item (id,"weapon_m4a1")
give_item (id,"weapon_m4a1" )
give_item (id,"weapon_m4a1" )
give_item (id,"weapon_m4a1" )
give_item (id,"weapon_deagle")
give_item (id,"weapon_deagle")
give_item (id,"weapon_deagle")
give_item (id,"weapon_deagle")
set_hudmessage(255, 255, 255, 0.02, 0.71, 0, 6.0, 5.0)
show_hudmessage(id, "Dostales: M4 i DGL)
}
else{
new szName [32];
get_user_name(id, szName, 31)
set_hudmessage(42, 42, 255, 0.02, 0.71, 0, 6.0, 5.0)
show_hudmessage(id, "Komende moze uzyc tylko CT!!!", szName)
}
}
Link do nieprzerobionego [jeżeli skorzystarz z linku, to poproszę o m4 i dgl]: Plugin FreeWeapon - AMXX.pl: Support AMX Mod X
Dodano 27 kwiecień 2011 - 18:09:
Nie mogę znaleść opcji "edytuj temat", a to już nie aktualne, więc proszę usunąć temat