Ajutor plugin

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 875
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 99 times
Been thanked: 18 times
Contact:

07 Jan 2020, 19:03

Salutare,
Am un plugin care pe hartile awp_ ar trebui sa stearga anumite echipamente si sa dea doar ce este setat in el, insa nu functioneaza... Un mic ajutor?
strip awp weapons | Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fun>


#define PLUGIN "awp lego"
#define VERSION "1.0"
#define AUTHOR "Kalipso22"

new Harita[32];

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
get_mapname(Harita,sizeof(Harita) - 1)
if((containi(Harita,"awp") == -1) && (containi(Harita,"awp_") == -1)) return 
RegisterHam(Ham_Spawn, "player", "bePS", 1);

}
public bePS(id){
if(is_user_alive(id) && is_user_connected(id)){

strip_user_weapons(id)
give_item(id,"weapon_knife")
give_item(id,"weapon_awp")
}
} 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/
Edit, am rezolvat singur, se poate da T.C / cos.
Cine vrea rezolvarea :
strip wpn | Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fun>


#define PLUGIN "awp lego"
#define VERSION "1.0"
#define AUTHOR "Kalipso22"

new Harita[32];

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
get_mapname(Harita,sizeof(Harita) - 1)
if((containi(Harita,"awp") == -1) && (containi(Harita,"awp_") == -1)) return 
register_event("ResetHUD", "event_hud_reset", "be")

}
public event_hud_reset(id)
{
 set_task(1.0, "strip", id)
}
public strip(id)
{
 strip_user_weapons(id)
 if ( get_user_team(id) == 1)
 {
give_item(id,"weapon_knife")
give_item(id,"weapon_awp")
 }
 else if(get_user_team(id) == 2)
 {
give_item(id,"weapon_knife")
give_item(id,"weapon_awp")
}
} 
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests