Ein neues Thema erstellen  Auf das Thema antworten  [ 7 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: give_weapon
BeitragVerfasst: 04.02.2003, 21:06 

Registriert: 21.01.2003, 17:12
Beiträge: 4
Ich suche ein Plugin für AdminMod oder MetaMod
(Adminmod wäre besser) bei dem man zB. per

admin_giveweapon player m4a1

anderen Spielern Waffen geben kann. Danke schonmal im Vorraus!

:rolleyes: K4m! :rolleyes:


Nach oben
   
 Betreff des Beitrags:
BeitragVerfasst: 04.02.2003, 22:01 

Registriert: 24.10.2002, 19:26
Beiträge: 109
Wohnort: Leipzig
X( du willst deinem team mit unfairen mitteln nen vorteil verschaffen? pfui :P
ne, spass beiseite, für lan wäre sowas schon ganz witzig, hab aber noch nie von so etwas gehört...

_________________
visit
www.1337-clan.de
#1337.clan (@Qnet)
62.80.109.114:27015 ..:: L33T^Metzelbude by #1337.clan ..:cd req:..


Nach oben
   
 Betreff des Beitrags: give_weapon
BeitragVerfasst: 04.02.2003, 22:14 

Registriert: 21.01.2003, 17:12
Beiträge: 4
also am besten wär das so in der art vom amx_weapon plugin, also wenns geht den quelltext von dem amx-plugin umbearbeiten für adminmod

/* Made By {W`C} Bludy
*
*Usage: amx_weapon < part of nick > or < @ team > or < # index > < weapon to give >
*
*Note: For <weapon to give> you enter the buy menu numbers
* Also note that the client does not drop his current weapon and
* can hold more then 1 primary and secondary weapon
*
*WARNING: This plugin is not meant to be used for cheating, please refrain from doing so
* use it at your own discretion but be fair!!
*
*EXAMPLE- Giving user M4: amx_weapon < part of nick > or < @ team > or < # index > 43 <--Do not put a space between #´s
*
* This is my first plugin and I kinda did a hack job on this but it worked and thats all that matters to me hehe
* Have fun!
*/


#include <amxmod>


public give_weapon(admin_index,victim_index,weapon_give)
{
new arg1[32]
read_argv(1,arg1,32)
new team[32]
get_user_team(victim_index,team,32)
new name[32]
get_user_name(victim_index,name,32)

if (equal(arg1,"@"))
{
if (equal(team,"CT"))
{
set_hudmessage(200, 50, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,"The Counter-Terrorists Have Been Given Weapons")
}
else if (equal(team,"TERRORIST"))
{
set_hudmessage(200, 50, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,"The Terrorists Have Been Given Weapons")
}
}
else
{
set_hudmessage(200, 50, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,"%s Has Been Given A Weapon",name)
}





//Pistols

if (weapon_give == 11){
give_item(victim_index,"weapon_usp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
}
else if (weapon_give == 12){
give_item(victim_index,"weapon_glock18")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
}
else if (weapon_give == 13){
give_item(victim_index,"weapon_deagle")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
give_item(victim_index,"ammo_50ae")
}
else if (weapon_give == 14){
give_item(victim_index,"weapon_p228")
give_item(victim_index,"ammo_357sig")
give_item(victim_index,"ammo_357sig")
give_item(victim_index,"ammo_357sig")
give_item(victim_index,"ammo_357sig")
give_item(victim_index,"ammo_357sig")
give_item(victim_index,"ammo_357sig")
}
else if (weapon_give == 15){
give_item(victim_index,"weapon_elite")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
}
else if (weapon_give == 16){
give_item(victim_index,"weapon_fiveseven")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
}
//Primary weapons
//shotguns
else if (weapon_give == 21) {
give_item(victim_index,"weapon_m3")
}
else if (weapon_give == 22) {
give_item(victim_index,"weapon_xm1014")
}
//Smgs
else if (weapon_give == 31) {
give_item(victim_index,"weapon_mp5navy")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
}
else if (weapon_give == 32) {
give_item(victim_index,"weapon_tmp")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
give_item(victim_index,"ammo_9mm")
}
else if (weapon_give == 33) {
give_item(victim_index,"weapon_p90")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
give_item(victim_index,"ammo_57mm")
}
else if (weapon_give == 34) {
give_item(victim_index,"weapon_mac10")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
}
else if (weapon_give == 35) {
give_item(victim_index,"weapon_ump45")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
give_item(victim_index,"ammo_45acp")
}
//rifles
else if (weapon_give == 41) {
give_item(victim_index,"weapon_ak47")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
}
else if (weapon_give == 42) {
give_item(victim_index,"weapon_sg552")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
}
else if (weapon_give == 43) {
give_item(victim_index,"weapon_m4a1")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
}
else if (weapon_give == 44) {
give_item(victim_index,"weapon_aug")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
}
else if (weapon_give == 45) {
give_item(victim_index,"weapon_scout")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
}
else if (weapon_give == 46) {
give_item(victim_index,"weapon_awp")
give_item(victim_index,"ammo_338magnum")
give_item(victim_index,"ammo_338magnum")
give_item(victim_index,"ammo_338magnum")
}
else if (weapon_give == 47) {
give_item(victim_index,"weapon_g3sg1")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
give_item(victim_index,"ammo_762nato")
}
else if (weapon_give == 48) {
give_item(victim_index,"weapon_sig550")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
}
//machine guns
else if (weapon_give == 51) {
give_item(victim_index,"weapon_m249")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
give_item(victim_index,"ammo_556nato")
}
//equipment
else if (weapon_give == 81) {
give_item(victim_index,"item_kevlar")
}
else if (weapon_give == 82) {
give_item(victim_index,"item_assaultsuit")
}
else if (weapon_give == 83) {
give_item(victim_index,"weapon_flashbang")
give_item(victim_index,"ammo_flashbang")
give_item(victim_index,"ammo_flashbang")
}
else if (weapon_give == 84) {
give_item(victim_index,"weapon_hegrenade")
}
else if (weapon_give == 85) {
give_item(victim_index,"weapon_smokegrenade")
}
else if (weapon_give == 86) {
give_item(victim_index,"item_thighpack")
}
else if (weapon_give == 87) {
give_item(victim_index,"item_longjump")
}
else

{
client_print(admin_index,print_console,"[AMX] There is no such weapon")
return PLUGIN_CONTINUE
}


client_print(admin_index,print_console,"[AMX] Client ^"%s^" has been given weapon",name)
return PLUGIN_CONTINUE
}







public admin_weapon(id)
{
if (!(get_user_flags(id)&ADMIN_LEVEL_A)){
client_print(id,print_console,"[AMX] You have no access to that command")
return PLUGIN_HANDLED
}
new argc = read_argc()
if (argc < 3)
{
client_print(id,print_console,"[AMX] Usage: amx_weapon < part of nick > or < @ team > or < # index > < weapon to give >")
return PLUGIN_HANDLED
}
new arg1[32]
new arg2[32]
new arg3[32]
read_argv(1,arg1,32)
read_argv(2,arg2,32)
read_argv(3,arg3,32)


//Team
if (equal(arg1,"@"))
{
new players[32], inum
get_players(players,inum,"e",arg2)
for(new i = 0 ;i < inum ;++i)
give_weapon(id,players,str_to_num(arg3))
if (inum)
client_print(id,print_console,"[AMX] * All clients from ^"%s^" got a weapon *",arg2)
else
client_print(id,print_console,"[AMX] No clients in such team")
}
//Index
if (equal(arg1,"#"))
{
if (is_user_connected(str_to_num(arg2)))
give_weapon(id,str_to_num(arg2),str_to_num(arg3))
else
client_print(id,print_console,"[AMX] Client not found")

}
//Part of Name
else
{
new player = find_player("lb",arg1)
if (player)
give_weapon(id,player,str_to_num(arg2))
else
client_print(id,print_console,"[AMX] Client with that part of nick not found")
}
return PLUGIN_HANDLED
}


public plugin_init()
{
register_plugin("amx_weapon","0.8.4","{W`C} Bludy")
register_clcmd("amx_weapon","admin_weapon",ADMIN_LEVEL_A,"amx_weapon < part of nick > or < @ team > or < # index > < weapon to give > ")
return PLUGIN_CONTINUE
}











ich hoffe ihr könnt mir bei dem plugin helfen!!!

K4m!


Nach oben
   
 Betreff des Beitrags:
BeitragVerfasst: 05.02.2003, 14:06 
HLDS Team

Registriert: 29.12.2002, 18:18
Beiträge: 988
Wohnort: Allersberg
ohne adminrechte gehts noch bei bmx. da kann man (falls aktiviert) z.b. mit give weapon_ak47 sich ne ak holen :)


Nach oben
   
 Betreff des Beitrags: BITTE
BeitragVerfasst: 05.02.2003, 19:20 

Registriert: 21.01.2003, 17:12
Beiträge: 4
bitte bitte helft mir bei so nem Plugin ich versuch derzeit selber das Skripten zu lernen aber wenn einer so ein Plugin kennt bitte POSTEN!!!! THX K4m!


Nach oben
   
 Betreff des Beitrags: BiTtE DiE 2te
BeitragVerfasst: 25.03.2003, 21:26 

Registriert: 21.01.2003, 17:12
Beiträge: 4
Weiß denn wirklich keiner ob irgentwas in der Art Art möglich ist?? Bitte um Antwort...


Nach oben
   
 Betreff des Beitrags:
BeitragVerfasst: 26.03.2003, 15:48 
HLDS Team
Benutzeravatar

Registriert: 26.11.2001, 01:00
Beiträge: 676
Mit adminmod kann man nur waffen spawnen wenn diese gecached sind, das geht nur wenn jemand auf der map eine hat, oder bereits irgendwo eine rumliegt.

so weis ich das zumindest, habs nie hinbekommen eine waffe zu spawnen wenn diese nicht bereits geladen war. muss aber nicht sein, vielleicht weis das jemand besser?

ps.: der der dieses plugin da oben programmiert hat hat noch nie was von switch-case gehört! sorry, falls ich hiermit jemanden beleidigen sollte.


Nach oben
   
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen  Auf das Thema antworten  [ 7 Beiträge ] 


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Powered by phpBB® Forum Software © phpBB Limited
Deutsche Übersetzung durch phpBB.de
Original Design von "[ Half-Life Admin Mod © Alfred Reynolds 2000-2003 ] - [ site design by Jägermeister ]"