Chodzi o perk na nowego CodModa...
#include <engine>
#include <codmod>
#include <hamsandwich>
#include <cstrike>
#include <colorchat>
new const perk_name[] = "Duzy Deagle";
new const perk_desc[] = "Dostajesz Deagla z pojemnoscia magazynku 14.";
new bool:ma_perk[33];
new wartosc_perku[33];
public plugin_init(){
register_plugin(Dejgiel, "1.0", "NoLiFeR");
cod_register_perk(perk_name, perk_desc, 2, 4);
}
public cod_perk_enabled(id, wartosc){
wartosc_perku[id] = wartosc;
ma_perk[id] = true;
give_item(id, "weapon_deagle");
ColorChat(id, GREEN, "Perk stworzony przez ^x03NoLiFeR'a ^x01dla sieci CsParty.", perk_name);
plg(id);
}
public plg(id){
new heh = ma_perk[id]
if(heh == true || cs_get_weapon_id(id) == 26 || cs_get_weapon_ammo(26) == 0)
{
set_task(2.3, "publik");
}
else
{
if(heh == true);}
{
plg(id);
}
else
{
cod_perk_disabled(id);
}
}
public publik(id){
if(ma_perk[id] == true || cs_get_weapon_id(id) == 26 || cs_get_weapon_ammo(26) == 7){
cs_set_weapon_ammo ( 26, 14 );
plg(id);}
else{
plg(id);
}
}
public cod_perk_disabled(id){
ma_perk[id] = false;
// PS mógłby ktoś zrobić funkcje zabierającą tego deagla ?
cs_set_weapon_ammo ( 26, 7 );
}
Warning217 tabluatory / spacje (to naprawie sam
) 21
Warning217 22
Warning213 tag mismatch 27
Warning213 tag mismatch 33
error 036: empty statement 33
error 029: Invalid expression, assumed zero 37
error 088: number of arguments does not match definition 39
Warning 217 52


Dodatki SourceMod













