hlmod.hu
https://hlmod.hu/

Zombie Nap
https://hlmod.hu/viewtopic.php?f=9&t=3647
Oldal: 1 / 2

Szerző:  CocaIne.^ [2012.03.07. 17:30 ]
Hozzászólás témája:  Zombie Nap

Mi a hiba? :S
error 017: undefined symbol "id"
warning 217: loose indentation
error 017: undefined symbol "id"
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Kód:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <cstrike>
 
       
public plugin_init
()
{
        register_plugin("Jailbreak Zombi nap", "0.1", "CocaIne.");
        register_clcmd("zmnap","game_zombie");
        
       
}


public game_zombie()
{
          
        new CsTeams
:userTeam = cs_get_user_team(id)
          if(userTeam == CS_TEAM_T)
        {
               cs_set_user_model(id, "zombie")
               set_user_health(id, 8000)
            }
        } 
        if
(userTeam == CS_TEAM_CT)
        {
             cs_set_user_model(id, "gign")
               set_user_health(id, 200)

    
return PLUGIN_CONTINUE
}
 

Szerző:  IrOn [2012.03.07. 17:31 ]
Hozzászólás témája:  Re: Zombie Nap

Kód:
public game_zombie()

-->
Kód:
public game_zombie(id)


minek ez a sok include? kb 2-t használsz

Szerző:  kiki [2012.03.07. 17:34 ]
Hozzászólás témája:  Re: Zombie Nap

Hát ez sztem még nincs kész

Szerző:  IrOn [2012.03.07. 17:35 ]
Hozzászólás témája:  Re: Zombie Nap

ja még vanbenne kismillió+ bekezdések össze vissza
Kód:
#include <amxmodx>
#include <fun>
#include <cstrike>
 
       
public plugin_init()
{
    
register_plugin("Jailbreak Zombi nap""0.1""CocaIne.");
    
register_clcmd("zmnap","game_zombie");
}


public 
game_zombie(id)
{
          
    new 
CsTeams:userTeam cs_get_user_team(id)
    if(
userTeam == CS_TEAM_T)
    {
        
cs_set_user_model(id"zombie")
        
set_user_health(id8000)
    }
    else if(
userTeam == CS_TEAM_CT)
    {
        
cs_set_user_model(id"gign")
        
set_user_health(id200)
    }
    return 
PLUGIN_CONTINUE

Szerző:  CocaIne.^ [2012.03.07. 17:37 ]
Hozzászólás témája:  Re: Zombie Nap

IrOn123 írta:
ja még vanbenne kismillió+ bekezdések össze vissza
Kód:
#include <amxmodx>
#include <fun>
#include <cstrike>
 
       
public plugin_init
()
{
    register_plugin("Jailbreak Zombi nap", "0.1", "CocaIne.");
    register_clcmd("zmnap","game_zombie");
}


public game_zombie(id)
{
          
    new CsTeams
:userTeam = cs_get_user_team(id)
    if(userTeam == CS_TEAM_T)
    {
        cs_set_user_model(id, "zombie")
        set_user_health(id, 8000)
    }
    else if(userTeam == CS_TEAM_CT)
    {
        cs_set_user_model(id, "gign")
        set_user_health(id, 200)
    }
    return PLUGIN_CONTINUE
}



köszönöm.
Ui: Bazd egyre hülyébb vagyok :'S

Szerző:  kiki [2012.03.07. 17:42 ]
Hozzászólás témája:  Re: Zombie Nap

Szerintem cocaine te nem ezt akarod! Ha a parancsot beirja egy ct akkor az a cz kap 200hpt, ha terror irja be akkor kap zombi modelt, meg hpt

Szerző:  CocaIne.^ [2012.03.07. 17:57 ]
Hozzászólás témája:  Re: Zombie Nap

kiki írta:
Szerintem cocaine te nem ezt akarod! Ha a parancsot beirja egy ct akkor az a cz kap 200hpt, ha terror irja be akkor kap zombi modelt, meg hpt

Hát akkor nem Xd
Am beraktam így és lefagyott a szeró x'D:
Kód:
#include <amxmodx>
#include <fun>
#include <cstrike>
       
public plugin_init()
{
    register_plugin("Jailbreak Zombi nap", "0.1", "CocaIne.");
    register_clcmd("zmnap","game_zombie", ADMIN_LEVEL_H );
}


public game_zombie(id)
{
    write_byte( 170  )
    message_end()
    new CsTeams:userTeam = cs_get_user_team(id)
    if(userTeam == CS_TEAM_T)
    {
        cs_set_user_model(id, "zombie")
        set_user_health(id, 8000)
    }
    else if(userTeam == CS_TEAM_CT)
    {
        cs_set_user_model(id, "gign")
        set_user_health(id, 200)
        new Red = random(256);
        new Green = random(256);
        new Blue = random(256);
          give_item(id, "weapon_knife")
      give_item(id, "weapon_deagle")
      give_item(id, "weapon_m4a1")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_556nato")
      give_item(id, "ammo_556nato")
      give_item(id, "ammo_556nato")
      give_item(id, "item_kevlar")
set_hudmessage(Red,Green,Blue, -1.5, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -2);
show_hudmessage(0, "ZOMBI NAP!");
    }
    return PLUGIN_CONTINUE
}

Szerző:  IrOn [2012.03.07. 17:59 ]
Hozzászólás témája:  Re: Zombie Nap

CocaIne.^ írta:
kiki írta:
Szerintem cocaine te nem ezt akarod! Ha a parancsot beirja egy ct akkor az a cz kap 200hpt, ha terror irja be akkor kap zombi modelt, meg hpt

Hát akkor nem Xd
Am beraktam így és lefagyott a szeró x'D:
Kód:
#include <amxmodx>
#include <fun>
#include <cstrike>
       
public plugin_init()
{
    register_plugin("Jailbreak Zombi nap", "0.1", "CocaIne.");
    register_clcmd("zmnap","game_zombie", ADMIN_LEVEL_H );
}


public game_zombie(id)
{
    write_byte( 170  )
    message_end()
    new CsTeams:userTeam = cs_get_user_team(id)
    if(userTeam == CS_TEAM_T)
    {
        cs_set_user_model(id, "zombie")
        set_user_health(id, 8000)
    }
    else if(userTeam == CS_TEAM_CT)
    {
        cs_set_user_model(id, "gign")
        set_user_health(id, 200)
        new Red = random(256);
        new Green = random(256);
        new Blue = random(256);
          give_item(id, "weapon_knife")
      give_item(id, "weapon_deagle")
      give_item(id, "weapon_m4a1")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_50ae")
      give_item(id, "ammo_556nato")
      give_item(id, "ammo_556nato")
      give_item(id, "ammo_556nato")
      give_item(id, "item_kevlar")
set_hudmessage(Red,Green,Blue, -1.5, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -2);
show_hudmessage(0, "ZOMBI NAP!");
    }
    return PLUGIN_CONTINUE
}

Ez mi?!

Szerző:  rericsi8 [2012.03.07. 18:01 ]
Hozzászólás témája:  Re: Zombie Nap

áhh idegesít hogy még mindig nem tudok plugint írni :(

Szerző:  kiki [2012.03.07. 18:08 ]
Hozzászólás témája:  Re: Zombie Nap

Kód:
    write_byte( 170  )
    message_end()


message_beginnel kezdünk messaget!
De nem hiszem hogy egy byte van benne!

Oldal: 1 / 2 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/