Surf mod
Lehekülg 1, lehekülgi kokku 1 • Share
- Muay ThaiLiige
- Liitus : 30/11/2014
Postitusi : 124
Tere, ma tahaks teha serverist surf , aga ma ei leia kusagilt modi, tahaks tavalist , et ei saaks teha respawn jne. Kas keegi saaks saata mulle surf modi ?
- Muay ThaiLiige
- Liitus : 30/11/2014
Postitusi : 124
Amm sain teada et surfil polegi modi, tuleb panna lihtsalt settingud , aga mis on settingud ja kuhu ma need panema pean?
Host on sevengaming
Host on sevengaming
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Taaskord, tegemist on täiesti valikuliste seadete ja pluginatega.
Kõigepealt soovitan avada server.cfg ning panna sv_airaccelerate "100". Tavaliselt on see pubides 10.
Seejärel võid hakata pluginate peale mõtlema:
Vipmenüü - http://www.faval.eu/t1516-amxx-surfi-vipmenuu
Admin/M3 lasuga jaili avamine - http://www.faval.eu/t1493-amxx-admin-m3-lasuga-jaili-avamine
No-Kill tsoonid - http://www.faval.eu/t1418-amxx-no-kill-tsoonid-by-jim-richardson
Autobhop - http://www.faval.eu/t1494-autobhop
Ühesõnaga, pluginad on täiesti sinu valik. Võid paigaldada soovi korral semiclipi jms, vaata foorumis ringi.
Kõigepealt soovitan avada server.cfg ning panna sv_airaccelerate "100". Tavaliselt on see pubides 10.
Seejärel võid hakata pluginate peale mõtlema:
Vipmenüü - http://www.faval.eu/t1516-amxx-surfi-vipmenuu
Admin/M3 lasuga jaili avamine - http://www.faval.eu/t1493-amxx-admin-m3-lasuga-jaili-avamine
No-Kill tsoonid - http://www.faval.eu/t1418-amxx-no-kill-tsoonid-by-jim-richardson
Autobhop - http://www.faval.eu/t1494-autobhop
Ühesõnaga, pluginad on täiesti sinu valik. Võid paigaldada soovi korral semiclipi jms, vaata foorumis ringi.
- zkevvuzLiige
- Liitus : 29/12/2014
Postitusi : 134
saad siia lisada selle ka et autarespawn oleks et kui surma saad siis spawnid kohe jälle uuesti
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
- Kood:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define PLUGIN "Respawn Mod"
#define VERSION "1.0"
#define AUTHOR "Alka"
#define RESPAWN_TIME_DELAY 0.0
#define TASK_ID 1337
new g_restart_attempt[33];
new bool:just_joined[33] = { true , ... };
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg", "death_msg", "a");
register_event("ResetHUD", "event_hud_reset", "be");
register_clcmd("fullupdate", "clcmd_fullupdate");
register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in");
register_clcmd("say /respawn", "command_respawn");
}
public client_disconnect(id)
just_joined[id] = true;
public clcmd_fullupdate()
return 2;
public event_restart_attempt()
{
new players[32], num;
get_players(players, num, "a");
for(new i = 0 ; i < num ; ++i)
g_restart_attempt[players[i]] = true;
}
public event_hud_reset(id)
{
if (g_restart_attempt[id])
{
g_restart_attempt[id] = false;
return;
}
event_player_spawn(id);
}
public event_player_spawn(id)
{
if(!just_joined[id])
return;
just_joined[id] = false;
set_task(0.5, "set_items", id);
}
public set_items(index)
{
if(!is_user_connected(index))
return;
fm_strip_user_weapons(index);
fm_give_item(index, "weapon_knife");
}
public death_msg()
{
new victim = read_data(2);
if(just_joined[victim])
return;
set_task(RESPAWN_TIME_DELAY, "respawn_player", victim + TASK_ID);
}
public respawn_player(taskID)
{
new id = taskID - TASK_ID;
new CsTeams:team = cs_get_user_team(id);
if(team != CS_TEAM_T && team != CS_TEAM_CT)
return;
cs_user_spawn(id);
}
public command_respawn(id)
{
if(is_user_alive(id))
return;
set_task(RESPAWN_TIME_DELAY, "respawn_player", id + TASK_ID);
}
/*Fakemeta GOOD (Fun module sucks badly)! Stocks*/
stock fm_strip_user_weapons(index)
{
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "player_weaponstrip"));
if(!pev_valid(ent))
return 0;
dllfunc(DLLFunc_Spawn, ent);
dllfunc(DLLFunc_Use, ent, index);
engfunc(EngFunc_RemoveEntity, ent);
return 1;
}
stock fm_give_item(index, const item[])
{
if (!equal(item, "weapon_", 7) && !equal(item, "ammo_", 5) && !equal(item, "item_", 5) && !equal(item, "tf_weapon_", 10))
return 0;
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, item));
if(!pev_valid(ent))
return 0;
new Float:origin[3];
pev(index, pev_origin, origin);
set_pev(ent, pev_origin, origin);
set_pev(ent, pev_spawnflags, pev(ent, pev_spawnflags) | SF_NORESPAWN);
dllfunc(DLLFunc_Spawn, ent);
new save = pev(ent, pev_solid);
dllfunc(DLLFunc_Touch, ent, index);
if(pev(ent, pev_solid) != save)
return ent;
engfunc(EngFunc_RemoveEntity, ent);
return -1;
}
Soovid vestluses osaleda?
Selleks logi sisse või tee endale kasutaja.
Lehekülg 1, lehekülgi kokku 1
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele