Zumbis Online
Últimos assuntos
» plugin gamemode sniper
por cancels 18/11/2017, 3:10 pm

» plugin class zm_climb
por [P]erfec[T] [S]cr[@]s[H] 17/11/2017, 5:46 pm

» plugin item t-virus
por [P]erfec[T] [S]cr[@]s[H] 17/11/2017, 5:39 pm

» Voltei ao fórum
por Biel-oGrande 13/11/2017, 8:24 am

» Hide Sheek Supply Box
por cancels 12/11/2017, 9:00 pm

» Painel gamecp ou outros
por cancels 12/11/2017, 10:34 am

» [ZP AMXX] CSO Shop Costumes
por hygorr 11/11/2017, 11:42 am

» (Ajuda) ZM VIP com Status do Perfect por Menssagem para Dono tambem!
por [Dk]Serial-Killer 6/11/2017, 12:56 pm

» [UTILITARIO] Bot Fake Spectador
por Wilian 22/10/2017, 9:09 am

» (Ajuda) Thunder Quando Zombie Infecta!
por Biel-oGrande 16/10/2017, 7:29 am

Frases filosóficas Zplague:
....
Os membros mais ativos da semana

Adsense

[PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Ver o tópico anterior Ver o tópico seguinte Ir em baixo

[PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por devil-square em 13/4/2013, 8:43 pm

NAO TO CONSEGUINDO COMPILAR A SMA QUE O JHADSON PASSO. PORQUE TA DANDO 12 ERROS AQUI.

ALGUEM PASSA UMA QUE PRESTE !!!!!!!!!!!



devil-square
Humano
Humano

Nick : Eclipse*
Masculino Número de Mensagens : 208
Ammo Packs : 1835
Honra : 13
Data de inscrição : 23/11/2012

Ver perfil do usuário jean.marques98

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por [P]erfec[T] [S]cr[@]s[H] em 13/4/2013, 8:48 pm

avatar
[P]erfec[T] [S]cr[@]s[H]
Scripter
Scripter

Masculino Número de Mensagens : 557
Jogador FODA Perfect Scrash entrou na zplague
Ammo Packs : 1981
Honra : 176
Data de inscrição : 04/04/2013

Ver perfil do usuário http://www.steamcommunity.com/id/perfectscrash perfect.scrash

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por devil-square em 13/4/2013, 11:43 pm

Perfect sera que da pra vc coloca essas flags ae pra mim. FUNDADOR = flag : z
MASTER = flag: y
ADM = flag: x
VIP = flag: w

Por favor fassa esse favor pra mim, e compila com essas flags.

devil-square
Humano
Humano

Nick : Eclipse*
Masculino Número de Mensagens : 208
Ammo Packs : 1835
Honra : 13
Data de inscrição : 23/11/2012

Ver perfil do usuário jean.marques98

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por rotam em 14/4/2013, 10:33 am

devil-square escreveu:Perfect sera que da pra vc coloca essas flags ae pra mim. FUNDADOR = flag : z
MASTER = flag: y
ADM = flag: x
VIP = flag: w

Por favor fassa esse favor pra mim, e compila com essas flags.

Correção
Flag z = flag de todos os jogadores ;)

____________________________________________





BANCO+REGISTRO PERSONALIZADO   CLICK AQUI !!! :


VENDO BANCO+SISTEMA DE REGISTRO+BKADMIN -- TOTALMENTE SEM BUGS >>> PREÇO A COMBINAR
POSSUI SONS,ARQUIVO CFG, SALVA POR NFVAULT
ADD SKYPE SE TIVER INTERESSADO ( dougprado13 ) 
Não Disponibilizo de graça, adc pra pedir eu deleto e denuncio.




Ela é amiga da minha mulher, pois é, pois é, mais vive dando em cima de mim, enfim, enfim (8)
avatar
rotam
Parceiros
Parceiros

Nick : Rotam
Masculino Número de Mensagens : 1136
Estressado pra caralho
Ammo Packs : 2207
Honra : 36
Data de inscrição : 21/04/2012

Ver perfil do usuário dougprado13

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por [P]erfec[T] [S]cr[@]s[H] em 14/4/2013, 5:58 pm

devil-square escreveu:Perfect sera que da pra vc coloca essas flags ae pra mim. FUNDADOR = flag : z
MASTER = flag: y
ADM = flag: x
VIP = flag: w

Por favor fassa esse favor pra mim, e compila com essas flags.

Tem como não filho. Eu já tentei.

____________________________________________


Dicas Para Ser um Bom Scripter:
* Pense no Plugin que ira criar (Seja Inovador)
* Crie um código SMA imaginário na cabeça de como vai ser o plugin
* Passe o Codigo mental para o AMX Studio
* Compile e Teste
* Corrija Todos os Bugs do Plugin (Caso tiver um)
* Poste o Plugin ;)

** Seguindo as Dicas você estara no Padrão [P]erfec[T] [S]cr[@]s[H] **  
Zplague24 Zplague20Zplague12 
avatar
[P]erfec[T] [S]cr[@]s[H]
Scripter
Scripter

Masculino Número de Mensagens : 557
Jogador FODA Perfect Scrash entrou na zplague
Ammo Packs : 1981
Honra : 176
Data de inscrição : 04/04/2013

Ver perfil do usuário http://www.steamcommunity.com/id/perfectscrash perfect.scrash

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por DH | jhadson em 14/4/2013, 7:20 pm

Spoiler:
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "say [fundador],[extreme],[vip],[adm]"
#define VERSION "2.0"
#define AUTHOR "jhadson"

#define ADMIN_FUNDADOR ADMIN_LEVEL_A
#define ADMIN_EXTREME ADMIN_LEVEL_B
#define ADMIN_ADM ADMIN_LEVEL_C
#define ADMIN_VIP ADMIN_LEVEL_H

#define ACCESS_LEVEL ADMIN_IMMUNITY
#define ADMIN_LISTEN ADMIN_IMMUNITY

new message[192]
new sayText
new teamInfo
new maxPlayers

new g_MessageColor
new g_NameColor
new g_AdminListen

new strName[191]
new strText[191]
new alive[11]

new const g_szTag[][] = {
"",
"[Fundador]",
"[Extreme]",
"[Admin]",
"[Vip]"
}

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

g_MessageColor = register_cvar("amx_color", "2") // Message colors: [1] Default Yellow, [2] Green, [3] White, [4] Blue, [5] Red
g_NameColor = register_cvar("amx_namecolor", "6") // Name colors: [1] Default Yellow, [2] Green, [3] White, [4] Blue, [5] Red, [6] Team-color
g_AdminListen = register_cvar("amx_listen", "1") // Set whether admins see or not all messages(Alive, dead and team-only)


sayText = get_user_msgid("SayText")
teamInfo = get_user_msgid("TeamInfo")
maxPlayers = get_maxplayers()


register_message(sayText, "avoid_duplicated")

register_concmd("amx_color", "set_color", ACCESS_LEVEL, "")
register_concmd("amx_namecolor", "set_name_color", ACCESS_LEVEL, "")
register_concmd("amx_listen", "set_listen", ACCESS_LEVEL, "<1 | 0>")
register_clcmd("say", "hook_say")
register_clcmd("say_team", "hook_teamsay")
}


public avoid_duplicated(msgId, msgDest, receiver)
{
return PLUGIN_HANDLED
}


public hook_say(id)
{
read_args(message, 191)
remove_quotes(message)

// Gungame commands and empty messages
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, "")) // Ignores Admin Hud Messages, Admin Slash commands,
return PLUGIN_CONTINUE

new name[32]
get_user_name(id, name, 31)

new admin = 0, iFlags = get_user_flags(id)

if(iFlags & ADMIN_IMMUNITY)
admin = 1
else if(iFlags & ADMIN_LEVEL_A)
admin = 2
else if(iFlags & ADMIN_LEVEL_B)
admin = 3
else if(iFlags & ADMIN_LEVEL_C)
admin = 4

new isAlive

if(is_user_alive(id))
{
isAlive = 1
alive = "^x01"
}
else
{
isAlive = 0
alive = "^x01*DEAD* "
}

static color[10]

if(admin)
{
// Name
switch(get_pcvar_num(g_NameColor))
{
case 1:
format(strName, 191, "^x04%s %s%s", g_szTag[admin], alive, name)
case 2:
format(strName, 191, "^x04%s %s^x04%s ", g_szTag[admin], alive, name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "^x04%s %s^x03%s ", g_szTag[admin], alive, name)
}
case 4:
{
color = "CT"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
}

// Message
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Yellow
format(strText, 191, "%s", message)
case 2: // Green
format(strText, 191, "^x04%s", message)
case 3: // White
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Blue
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Red
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else // Player is not admin. Team-color name : Yellow message
{
get_user_team(id, color, 9)
format(strName, 191, "%s^x03%s", alive, name)
format(strText, 191, "%s", message)
}

format(message, 191, "%s^x01 : %s", strName, strText)

sendMessage(color, isAlive) // Sends the colored message

return PLUGIN_CONTINUE
}


public hook_teamsay(id)
{
new playerTeam = get_user_team(id)
new playerTeamName[19]

switch(playerTeam) // Team names which appear on team-only messages
{
case 1:
copy(playerTeamName, 11, "Terrorists")

case 2:
copy(playerTeamName, 18, "Counter-Terrorists")

default:
copy(playerTeamName, 9, "Spectator")
}

read_args(message, 191)
remove_quotes(message)

// Gungame commands and empty messages
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, "")) // Ignores Admin Hud Messages, Admin Slash commands,
return PLUGIN_CONTINUE

new name[32]
get_user_name(id, name, 31)

new admin = 0, iFlags = get_user_flags(id)

if(iFlags & ADMIN_FUNDADOR)
admin = 1
else if(iFlags & ADMIN_EXTREME)
admin = 2
else if(iFlags & ADMIN_ADM)
admin = 3
else if(iFlags & ADMIN_VIP)
admin = 4

new isAlive

if(is_user_alive(id))
{
isAlive = 1
alive = "^x01"
}
else
{
isAlive = 0
alive = "^x01*DEAD* "
}

static color[10]

if(admin)
{
// Name
switch(get_pcvar_num(g_NameColor))
{
case 1:
format(strName, 191, "%s(%s)^x04%s %s", alive, playerTeamName, g_szTag[admin], name)
case 2:
format(strName, 191, "%s(%s)^x04%s ^x04%s", alive, playerTeamName, g_szTag[admin], name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 4:
{
color = "CT"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
}

// Message
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Yellow
format(strText, 191, "%s", message)
case 2: // Green
format(strText, 191, "^x04%s", message)
case 3: // White
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Blue
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Red
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else // Player is not admin. Team-color name : Yellow message
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s) ^x03%s", alive, playerTeamName, name)
format(strText, 191, "%s", message)
}

format(message, 191, "%s ^x01: %s", strName, strText)

sendTeamMessage(color, isAlive, playerTeam) // Sends the colored message

return PLUGIN_CONTINUE
}


public set_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newColor
read_argv(1, arg, 1)

newColor = str_to_num(arg)

if(newColor >= 1 && newColor <= 5)
{
set_pcvar_num(g_MessageColor, newColor)

if(get_pcvar_num(g_NameColor) != 1 &&
((newColor == 3 && get_pcvar_num(g_NameColor) != 3)
||(newColor == 4 && get_pcvar_num(g_NameColor) != 4)
||(newColor == 5 && get_pcvar_num(g_NameColor) != 5)))
{
set_pcvar_num(g_NameColor, 2)
}
}

return PLUGIN_HANDLED
}


public set_name_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newColor
read_argv(1, arg, 1)

newColor = str_to_num(arg)

if(newColor >= 1 && newColor <= 6)
{
set_pcvar_num(g_NameColor, newColor)

if((get_pcvar_num(g_MessageColor) != 1
&&((newColor == 3 && get_pcvar_num(g_MessageColor) != 3)
||(newColor == 4 && get_pcvar_num(g_MessageColor) != 4)
||(newColor == 5 && get_pcvar_num(g_MessageColor) != 5)))
|| get_pcvar_num(g_NameColor) == 6)
{
set_pcvar_num(g_MessageColor, 2)
}
}

return PLUGIN_HANDLED
}


public set_listen(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newListen
read_argv(1, arg, 1)

newListen = str_to_num(arg)

set_pcvar_num(g_AdminListen, newListen)

return PLUGIN_HANDLED
}


public sendMessage(color[], alive)
{
new teamName[10]

for(new player = 1; player < maxPlayers; player++)
{
if(!is_user_connected(player))
continue

if(alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
get_user_team(player, teamName, 9) // Stores user's team name to change back after sending the message
changeTeamInfo(player, color) // Changes user's team according to color choosen
writeMessage(player, message) // Writes the message on player's chat
changeTeamInfo(player, teamName) // Changes user's team back to original
}
}
}


public sendTeamMessage(color[], alive, playerTeam)
{
new teamName[10]

for(new player = 1; player < maxPlayers; player++)
{
if(!is_user_connected(player))
continue

if(get_user_team(player) == playerTeam || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
if(alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
get_user_team(player, teamName, 9) // Stores user's team name to change back after sending the message
changeTeamInfo(player, color) // Changes user's team according to color choosen
writeMessage(player, message) // Writes the message on player's chat
changeTeamInfo(player, teamName) // Changes user's team back to original
}
}
}
}


public changeTeamInfo(player, team[])
{
message_begin(MSG_ONE, teamInfo, _, player) // Tells to to modify teamInfo(Which is responsable for which time player is)
write_byte(player) // Write byte needed
write_string(team) // Changes player's team
message_end() // Also Needed
}


public writeMessage(player, message[])
{
message_begin(MSG_ONE, sayText, {0, 0, 0}, player) // Tells to modify sayText(Which is responsable for writing colored messages)
write_byte(player) // Write byte needed
write_string(message) // Effectively write the message, finally, afterall
message_end() // Needed as always
}
avatar
DH | jhadson
Humano
Humano

Nick : Freddy Krueger
Masculino Número de Mensagens : 95
Um pouco fora do cs (Só observo os posts)
Ammo Packs : 1866
Honra : 4
Data de inscrição : 22/10/2012

Ver perfil do usuário pezao4546

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por Leozinho em 14/4/2013, 8:28 pm

DH | jhadson escreveu:
Spoiler:
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "say [fundador],[extreme],[vip],[adm]"
#define VERSION "2.0"
#define AUTHOR "jhadson"

#define ADMIN_FUNDADOR ADMIN_LEVEL_A
#define ADMIN_EXTREME ADMIN_LEVEL_B
#define ADMIN_ADM ADMIN_LEVEL_C
#define ADMIN_VIP ADMIN_LEVEL_H

#define ACCESS_LEVEL ADMIN_IMMUNITY
#define ADMIN_LISTEN ADMIN_IMMUNITY

new message[192]
new sayText
new teamInfo
new maxPlayers

new g_MessageColor
new g_NameColor
new g_AdminListen

new strName[191]
new strText[191]
new alive[11]

new const g_szTag[][] = {
"",
"[Fundador]",
"[Extreme]",
"[Admin]",
"[Vip]"
}

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

g_MessageColor = register_cvar("amx_color", "2") // Message colors: [1] Default Yellow, [2] Green, [3] White, [4] Blue, [5] Red
g_NameColor = register_cvar("amx_namecolor", "6") // Name colors: [1] Default Yellow, [2] Green, [3] White, [4] Blue, [5] Red, [6] Team-color
g_AdminListen = register_cvar("amx_listen", "1") // Set whether admins see or not all messages(Alive, dead and team-only)


sayText = get_user_msgid("SayText")
teamInfo = get_user_msgid("TeamInfo")
maxPlayers = get_maxplayers()


register_message(sayText, "avoid_duplicated")

register_concmd("amx_color", "set_color", ACCESS_LEVEL, "")
register_concmd("amx_namecolor", "set_name_color", ACCESS_LEVEL, "")
register_concmd("amx_listen", "set_listen", ACCESS_LEVEL, "<1 | 0>")
register_clcmd("say", "hook_say")
register_clcmd("say_team", "hook_teamsay")
}


public avoid_duplicated(msgId, msgDest, receiver)
{
return PLUGIN_HANDLED
}


public hook_say(id)
{
read_args(message, 191)
remove_quotes(message)

// Gungame commands and empty messages
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, "")) // Ignores Admin Hud Messages, Admin Slash commands,
return PLUGIN_CONTINUE

new name[32]
get_user_name(id, name, 31)

new admin = 0, iFlags = get_user_flags(id)

if(iFlags & ADMIN_IMMUNITY)
admin = 1
else if(iFlags & ADMIN_LEVEL_A)
admin = 2
else if(iFlags & ADMIN_LEVEL_B)
admin = 3
else if(iFlags & ADMIN_LEVEL_C)
admin = 4

new isAlive

if(is_user_alive(id))
{
isAlive = 1
alive = "^x01"
}
else
{
isAlive = 0
alive = "^x01*DEAD* "
}

static color[10]

if(admin)
{
// Name
switch(get_pcvar_num(g_NameColor))
{
case 1:
format(strName, 191, "^x04%s %s%s", g_szTag[admin], alive, name)
case 2:
format(strName, 191, "^x04%s %s^x04%s ", g_szTag[admin], alive, name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "^x04%s %s^x03%s ", g_szTag[admin], alive, name)
}
case 4:
{
color = "CT"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
}

// Message
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Yellow
format(strText, 191, "%s", message)
case 2: // Green
format(strText, 191, "^x04%s", message)
case 3: // White
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Blue
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Red
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else // Player is not admin. Team-color name : Yellow message
{
get_user_team(id, color, 9)
format(strName, 191, "%s^x03%s", alive, name)
format(strText, 191, "%s", message)
}

format(message, 191, "%s^x01 : %s", strName, strText)

sendMessage(color, isAlive) // Sends the colored message

return PLUGIN_CONTINUE
}


public hook_teamsay(id)
{
new playerTeam = get_user_team(id)
new playerTeamName[19]

switch(playerTeam) // Team names which appear on team-only messages
{
case 1:
copy(playerTeamName, 11, "Terrorists")

case 2:
copy(playerTeamName, 18, "Counter-Terrorists")

default:
copy(playerTeamName, 9, "Spectator")
}

read_args(message, 191)
remove_quotes(message)

// Gungame commands and empty messages
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, "")) // Ignores Admin Hud Messages, Admin Slash commands,
return PLUGIN_CONTINUE

new name[32]
get_user_name(id, name, 31)

new admin = 0, iFlags = get_user_flags(id)

if(iFlags & ADMIN_FUNDADOR)
admin = 1
else if(iFlags & ADMIN_EXTREME)
admin = 2
else if(iFlags & ADMIN_ADM)
admin = 3
else if(iFlags & ADMIN_VIP)
admin = 4

new isAlive

if(is_user_alive(id))
{
isAlive = 1
alive = "^x01"
}
else
{
isAlive = 0
alive = "^x01*DEAD* "
}

static color[10]

if(admin)
{
// Name
switch(get_pcvar_num(g_NameColor))
{
case 1:
format(strName, 191, "%s(%s)^x04%s %s", alive, playerTeamName, g_szTag[admin], name)
case 2:
format(strName, 191, "%s(%s)^x04%s ^x04%s", alive, playerTeamName, g_szTag[admin], name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 4:
{
color = "CT"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
}

// Message
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Yellow
format(strText, 191, "%s", message)
case 2: // Green
format(strText, 191, "^x04%s", message)
case 3: // White
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Blue
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Red
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else // Player is not admin. Team-color name : Yellow message
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s) ^x03%s", alive, playerTeamName, name)
format(strText, 191, "%s", message)
}

format(message, 191, "%s ^x01: %s", strName, strText)

sendTeamMessage(color, isAlive, playerTeam) // Sends the colored message

return PLUGIN_CONTINUE
}


public set_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newColor
read_argv(1, arg, 1)

newColor = str_to_num(arg)

if(newColor >= 1 && newColor <= 5)
{
set_pcvar_num(g_MessageColor, newColor)

if(get_pcvar_num(g_NameColor) != 1 &&
((newColor == 3 && get_pcvar_num(g_NameColor) != 3)
||(newColor == 4 && get_pcvar_num(g_NameColor) != 4)
||(newColor == 5 && get_pcvar_num(g_NameColor) != 5)))
{
set_pcvar_num(g_NameColor, 2)
}
}

return PLUGIN_HANDLED
}


public set_name_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newColor
read_argv(1, arg, 1)

newColor = str_to_num(arg)

if(newColor >= 1 && newColor <= 6)
{
set_pcvar_num(g_NameColor, newColor)

if((get_pcvar_num(g_MessageColor) != 1
&&((newColor == 3 && get_pcvar_num(g_MessageColor) != 3)
||(newColor == 4 && get_pcvar_num(g_MessageColor) != 4)
||(newColor == 5 && get_pcvar_num(g_MessageColor) != 5)))
|| get_pcvar_num(g_NameColor) == 6)
{
set_pcvar_num(g_MessageColor, 2)
}
}

return PLUGIN_HANDLED
}


public set_listen(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[1], newListen
read_argv(1, arg, 1)

newListen = str_to_num(arg)

set_pcvar_num(g_AdminListen, newListen)

return PLUGIN_HANDLED
}


public sendMessage(color[], alive)
{
new teamName[10]

for(new player = 1; player < maxPlayers; player++)
{
if(!is_user_connected(player))
continue

if(alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
get_user_team(player, teamName, 9) // Stores user's team name to change back after sending the message
changeTeamInfo(player, color) // Changes user's team according to color choosen
writeMessage(player, message) // Writes the message on player's chat
changeTeamInfo(player, teamName) // Changes user's team back to original
}
}
}


public sendTeamMessage(color[], alive, playerTeam)
{
new teamName[10]

for(new player = 1; player < maxPlayers; player++)
{
if(!is_user_connected(player))
continue

if(get_user_team(player) == playerTeam || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
if(alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
{
get_user_team(player, teamName, 9) // Stores user's team name to change back after sending the message
changeTeamInfo(player, color) // Changes user's team according to color choosen
writeMessage(player, message) // Writes the message on player's chat
changeTeamInfo(player, teamName) // Changes user's team back to original
}
}
}
}


public changeTeamInfo(player, team[])
{
message_begin(MSG_ONE, teamInfo, _, player) // Tells to to modify teamInfo(Which is responsable for which time player is)
write_byte(player) // Write byte needed
write_string(team) // Changes player's team
message_end() // Also Needed
}


public writeMessage(player, message[])
{
message_begin(MSG_ONE, sayText, {0, 0, 0}, player) // Tells to modify sayText(Which is responsable for writing colored messages)
write_byte(player) // Write byte needed
write_string(message) // Effectively write the message, finally, afterall
message_end() // Needed as always
}

Tenho 99 % de certeza que você não fez esse plugin pra tirar os créditos do verdadeiro autor e colocar o seu. Você pode ter modificado mais ter feito tenho 99% que não fez, tem aqui um tópico com um desses ai modificado..

http://zplague.forumclan.com/t2569-ajuda-aqui-4-classes?highlight=4+classes

Remover os créditos do verdadeiro autor e rip, mesmo você editando..

____________________________________________

avatar
Leozinho
Administrador
Administrador

Masculino Número de Mensagens : 2856
Ammo Packs : 2850
Honra : 75
Data de inscrição : 20/11/2011

Ver perfil do usuário leozinho.zp

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por [P]erfec[T] [S]cr[@]s[H] em 27/4/2013, 10:24 pm

devil-square escreveu:Perfect sera que da pra vc coloca essas flags ae pra mim. FUNDADOR = flag : z
MASTER = flag: y
ADM = flag: x
VIP = flag: w

Por favor fassa esse favor pra mim, e compila com essas flags.

Esse aqui é bem melhor do que o do jhadson e o que postei acima:

https://forums.alliedmods.net/showthread.php?t=183491

É que nem o do que o junin postou mas só que mais atualizado e da pra adicionar tag pela steam (Tuto já no topico)

____________________________________________


Dicas Para Ser um Bom Scripter:
* Pense no Plugin que ira criar (Seja Inovador)
* Crie um código SMA imaginário na cabeça de como vai ser o plugin
* Passe o Codigo mental para o AMX Studio
* Compile e Teste
* Corrija Todos os Bugs do Plugin (Caso tiver um)
* Poste o Plugin ;)

** Seguindo as Dicas você estara no Padrão [P]erfec[T] [S]cr[@]s[H] **  
Zplague24 Zplague20Zplague12 
avatar
[P]erfec[T] [S]cr[@]s[H]
Scripter
Scripter

Masculino Número de Mensagens : 557
Jogador FODA Perfect Scrash entrou na zplague
Ammo Packs : 1981
Honra : 176
Data de inscrição : 04/04/2013

Ver perfil do usuário http://www.steamcommunity.com/id/perfectscrash perfect.scrash

Voltar ao Topo Ir em baixo

Re: [PEDIDO] ALGUEM ME PASSA O PLUGIN QUE TEM [FUNDADOR], [MASTER], [ADM], [VIP].

Mensagem por Conteúdo patrocinado


Conteúdo patrocinado


Voltar ao Topo Ir em baixo

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo

- Tópicos similares

 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum