1

Тема: Как испарвить?

Скачал плагин amx_ghost для сервера кс. Когда я становлюсь невидимым, то у меня появляется скорость и годмод. Как мне отключить годмод? Где покопаться? в каком файле?

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg

2

Re: Как испарвить?

m sma?




amx_ghost.sma
Ищи строчку godmod или как то так.
Попробуй удалить.

Отредактировано Audio (26-04-2012 12:20)

3

Re: Как испарвить?

не помогло ad

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg

4

Re: Как испарвить?

скомпилируй для начала файлы  facepalm

SPOILER Show

http://i035.radikal.ru/1206/2f/e98f2d571ff3.jpg


@_@

http://media.tumblr.com/tumblr_m51guydSbd1qgsxxo.gif

5

Re: Как испарвить?

скачай норм плагин или перепиши этот

6

Re: Как испарвить?

Попробуй Внешняя ссылка

м помогло?

Отредактировано (27-04-2012 15:53)

7

Re: Как испарвить?

хз,я не дома, завтра посмотрю. спасибо.
Тему не закрывать!

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg

8

Re: Как испарвить?

Удали плагин amx_ghost мне помогло !

9

Re: Как испарвить?

я сам хз, как то хотел стать скриптером, вот этому чувачку попробуй написать 5655299
Шарит неимоверно

SPOILER Show

http://img.beetor.org/upload/images/7ZI9.jpg

10

Re: Как испарвить?

Винт, везде нафлудил? В бан его!
Ни кому я писать не буду  aj

не помогло!

Отредактировано (28-04-2012 13:34)

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg

11

Re: Как испарвить?

ВЫложи сюда текст из amx_ghost.sma

12

Re: Как испарвить?

SPOILER Show

*  AMX Mod script.
*
*  Ghost Mode Script
*  Version 1.4
*  by Kiosk3
*  email: [email protected]
*
*  Changes In 1.4
*
*  -Changed how invisibility works, thanks to jedi's plugin, im using transparency instead of normal.
*
*  Changes In 1.3
*
*  -Added On/Off CSAY Messages
*
*  Changes In 1.2
*
*  -Fixed the speed glitch where if you have it on yourself everyone gets it
*
*  Changes In 1.1

*  -Changed on from ghost to amx_ghost
*  -Changed off from unghost to amx_unghost
*  -Fixed godmode, you will not lose godmode untill you hit amx_unghost
*  -Fixed speed, you will not lose speed while switching weapons
*
*  Description:
*
*  This plugin turns your admins into a ghost.
*  What it does is this, records users speed, changes it to 1000,
*  turns on godmode, and makes the person invisible.
*  When you turn it off it reverts to your old speed, ungods and makes you visible.
*  Only admins can use it, and only can use it on themselves.
*  This is great if you want to run around with a knife scaring people, or to watch for hackers

*  Console Commands:
*
*  amx_ghost - This turns it on. (Turns on invisibility, godmode, and speed.)
*  amx_unghost - This turns it off. (Turns off invisibility, godmode, and speed.)
*
*  Future Plans:

*  Keep the amx_ghost | amx_unghost for yourself but add amx_ghost <name> | amx_unghost <name>.
******************************************************************************************************************/


#include <amxmod>
#include <amxmisc>
#include <fun>

#define BPID 341219
#define MAX_TEXT_LENGTH 512
#define MAX_NAME_LENGTH 32

new Float:oldspeed[33]
new ccolor[33]
new IsGhost[33]
new sName[MAX_NAME_LENGTH]
new sMsg[MAX_TEXT_LENGTH]

public changecolor(ids[]) {
new toghost = ids[0]
switch(ccolor[toghost]) {
case 0: {
set_user_rendering(toghost,kRenderFxNone,0,0,0, kRenderTransTexture,0)
ccolor[toghost] = 1
}
case 1: {
set_user_rendering(toghost,kRenderFxNone,0,0,0, kRenderTransTexture,0)
ccolor[toghost] = 2
}
case 2: {
set_user_rendering(toghost,kRenderFxNone,0,0,0, kRenderTransTexture,0)
ccolor[toghost] = 0
}
}
}

public admin_ghost(id,level,cid)
{
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new params[3]
params[0] = id
IsGhost[id] = 1
get_user_name(id, sName, 32)
format(sMsg,MAX_TEXT_LENGTH,"Oh my %s just turned himself into a ghost!!",sName)
display_msg(sMsg,255,10,100)
oldspeed[id] = get_user_maxspeed(id)
set_user_maxspeed(id,1000.0)
set_user_godmode(id,1)
set_task(0.2, "changecolor", BPID + id, params, 2, "b")
return PLUGIN_HANDLED
}

public admin_unghost(id, level, cid)
{
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
IsGhost[id] = 0
get_user_name(id, sName, 32)
format(sMsg,MAX_TEXT_LENGTH,"Oh dang %s isn't a ghost anymore..",sName)
display_msg(sMsg,50,75,255)
set_user_maxspeed(id,oldspeed[id])
set_user_godmode(id,0)
set_user_rendering(id,kRenderFxNone,255,255,255, kRenderNormal,16)
remove_task(BPID + id)
return PLUGIN_HANDLED
}

public switchweapon(id)
{
if(IsGhost[id]) set_user_maxspeed(id,1000.0)
return PLUGIN_CONTINUE
}

public round_start(id)
{
if(IsGhost[id]) set_user_godmode(id,1)
return PLUGIN_CONTINUE
}

public client_connect(id){
IsGhost[id] = 0
return PLUGIN_CONTINUE
}

public client_disconnect(id){
IsGhost[id] = 0
return PLUGIN_CONTINUE
}

public display_msg(msg[],r,g,b)
{
set_hudmessage(r,g,b,-1.0,0.30,0,6.0,6.0,0.5,0.15,1)
show_hudmessage(0,msg)
}

public plugin_init() {
register_plugin("Ghost Mode","1.4","Kiosk3")
register_concmd("amx_ghost","admin_ghost")
register_concmd("amx_unghost","admin_unghost")
register_event("CurWeapon","switchweapon","be")
register_event("ResetHUD", "round_start", "be")
return PLUGIN_CONTINUE
}

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg

13

Re: Как испарвить?

Удали это

public switchweapon(id)
{ 
if(IsGhost[id]) set_user_maxspeed(id,1000.0) 
return PLUGIN_CONTINUE 
}
public round_start(id) 
{ 
if(IsGhost[id]) set_user_godmode(id,1) 
return PLUGIN_CONTINUE 
}

и

oldspeed[id] = get_user_maxspeed(id) 
set_user_maxspeed(id,1000.0) 
set_user_godmode(id,1)

и

set_user_maxspeed(id,oldspeed[id]) 
set_user_godmode(id,0) 

и

new Float:oldspeed[33] 

Потом скомпили плагин(это разговор для отдельной темы)
и полученую amxx засунь на сервер

14

Re: Как испарвить?

всё. я всё намутил. закрывайте

SPOILER Show

http://s018.radikal.ru/i508/1305/64/5323023ec15f.jpg
http://s58.radikal.ru/i160/1302/b1/abc75d19625e.jpg
http://s60.radikal.ru/i170/1305/f4/0386f245ffcd.jpg
http://s53.radikal.ru/i140/1305/5a/3589f67260bb.jpg