Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdkhooks>
- #include <sdktools>
- #include <codmod>
- // lista broni :
- //"weapon_ak47","weapon_m4a1","weapon_m4a1_silencer","weapon_awp", "weapon_sg552","weapon_aug","weapon_p90","weapon_galilar", "weapon_famas","weapon_ssg08","weapon_g3sg1","weapon_scar20","weapon_m249","weapon_negev","weapon_nova","weapon_xm1014", "weapon_sawedoff","weapon_mag7","weapon_mac10","weapon_mp9","weapon_mp7","weapon_ump45","weapon_bizon","weapon_glock","weapon_fiveseven","weapon_deagle","weapon_revolver","weapon_hkp2000","weapon_usp_silencer","weapon_p250","weapon_elite","weapon_tec9","weapon_cz75a,"weapon_mp5sd"
- // statystyki klasy /////////////////////////////////////////////////////
- new const String:nazwa[] = "";
- new const String:opis[] = "";
- new const String:bronie[] = "#";
- new const inteligencja = 0;
- new const zdrowie = 0;
- new const obrazenia = 0;
- new const wytrzymalosc = 0;
- new const kondycja = 15;
- /////////////////////////////////////////////////////////////////////////
- // zmienne globalne
- new bool:ma_klase[65];
- //
- public Plugin:myinfo =
- {
- name = nazwa,
- author = "SUPER TIMOR",
- description = "Klasa - ",
- version = "1.0.0",
- url = "http://steamcommunity.com/id/bonkwszlaufrocku"
- };
- public OnPluginStart()
- {
- cod_register_class(nazwa, opis, bronie, inteligencja, zdrowie, obrazenia, wytrzymalosc, kondycja, frakcja);
- // HookEvent("player_spawn", OdrodzenieGracza);
- // HookEvent("player_death", SmiercGracza);
- }
- public cod_class_enabled(client)
- {
- ma_klase[client] = true;
- }
- public cod_class_disabled(client)
- {
- ma_klase[client] = false;
- }
- //public cod_class_skill_used(client)
- //public Action:OdrodzenieGracza(Handle:event, String:name[], bool:dontBroadcast)
- //{
- // new client = GetClientOfUserId(GetEventInt(event, "userid"));
- //}
- /*public Action:SmiercGracza(Handle:event, String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- new killer = GetClientOfUserId(GetEventInt(event, "attacker"));
- if(!IsValidClient(killer) || !ma_klase[killer])
- return Plugin_Continue;
- if(!IsValidClient(client) || !IsPlayerAlive(killer))
- return Plugin_Continue;
- if(GetClientTeam(client) == GetClientTeam(killer))
- return Plugin_Continue;
- return Plugin_Continue;
- } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement