Raised This Month: $ Target: $400
 0% 

Golden/Silver Player


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
akhjalpk
Junior Member
Join Date: Aug 2012
Location: personal :P
Old 10-01-2012 , 11:00   Golden/Silver Player
Reply With Quote #1

[COLOR="rgb(154, 205, 50)"]GOLDEN/Silver PLAYER PLUGIN[/COLOR]

THE FLAGS:-
1) g-silver
2) h-golden
Attached Files
File Type: sma Get Plugin or Get Source (goldenplayer.sma - 913 views - 10.2 KB)
File Type: sma Get Plugin or Get Source (silverplayer.sma - 241 views - 10.5 KB)

Last edited by ConnorMcLeod; 10-01-2012 at 11:36. Reason: removed .amxx files
akhjalpk is offline
Send a message via MSN to akhjalpk Send a message via Skype™ to akhjalpk
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 10-01-2012 , 11:07   Re: Golden/Silver Player
Reply With Quote #2

Lol taken from a VIP plugin..

Going to test.
sami_spt is offline
akhjalpk
Junior Member
Join Date: Aug 2012
Location: personal :P
Old 10-01-2012 , 11:35   Re: Golden/Silver Player
Reply With Quote #3

i knwo u
u r from Sharjah Play time

Last edited by akhjalpk; 10-01-2012 at 11:37.
akhjalpk is offline
Send a message via MSN to akhjalpk Send a message via Skype™ to akhjalpk
akhjalpk
Junior Member
Join Date: Aug 2012
Location: personal :P
Old 10-01-2012 , 11:37   Re: Golden/Silver Player
Reply With Quote #4

Quote:
Originally Posted by sami_spt View Post
Lol taken from a VIP plugin..

Going to test.
Exactly its edited plugin
akhjalpk is offline
Send a message via MSN to akhjalpk Send a message via Skype™ to akhjalpk
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-01-2012 , 11:38   Re: Golden/Silver Player
Reply With Quote #5

Poorly coded.

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
akhjalpk
Junior Member
Join Date: Aug 2012
Location: personal :P
Old 10-07-2012 , 13:59   Re: Golden/Silver Player
Reply With Quote #6

Quote:
Poorly coded.
omg i didnt code my friend passed it to me, and asked me not to share it with anyone
but me... as i dont keep my word ..........
i posted it here
i have a better one
i use the one by exolent

Last edited by akhjalpk; 10-07-2012 at 14:00. Reason: xD
akhjalpk is offline
Send a message via MSN to akhjalpk Send a message via Skype™ to akhjalpk
akhjalpk
Junior Member
Join Date: Aug 2012
Location: personal :P
Old 10-07-2012 , 14:01   Re: Golden/Silver Player
Reply With Quote #7

btw plz help me with this code,its too hard:

since i m not a professional coder :O

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new Keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|M ENU_KEY_4|MENU_KEY_5
register_menucmd(register_menuid("Votemap Menu"), 1023, "actionVoteMapMenu")
register_menucmd(register_menuid("Changelevel Menu"), 1023, "actionMapsMenu")
register_menucmd(register_menuid("Golden Menu"), Keys, "menu")
register_menucmd(register_menuid("The winner: "), 3, "actionResult")
register_menucmd(register_menuid("The winner: "), 3, "menu")
register_concmd("amx_goldenmenu","ADMIN_LEVEL _C, "showGoldenMenu")
}

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

new menu[192]
new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|M ENU_KEY_4|MENU_KEY_5

format(menu, 191 "Golden Menu^n^n1. Slay^n2. Slap^n3. Change Level^n4. Vote maps")
show_menu(id, keys, menu)
return PLUGIN_HANDLED
}

public actionMapsMenu(id, key)
{
switch (key)
{
case 8: displayMapsMenu(id, ++g_menuPosition[id])
case 9: displayMapsMenu(id, --g_menuPosition[id])
default:
{
new a = g_menuPosition[id] * 8 + key
new _modName[10]

get_modname(_modName, 9)
if (!equal(_modName, "zp"))
{
message_begin(MSG_ALL, SVC_INTERMISSION)
message_end()
}

new authid[32], name[32]

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)

new tempMap[32];
ArrayGetString(g_mapName, a, tempMap, charsmax(tempMap));

show_activity_key("ADMIN_CHANGEL_1", "ADMIN_CHANGEL_2", name, tempMap);

log_amx("Cmd: ^"%s<%d><%s><>^" changelevel ^"%s^"", name, get_user_userid(id), authid, tempMap)
set_task(2.0, "delayedChange", 0, tempMap, strlen(tempMap) + 1)
/* displayMapsMenu(id, g_menuPosition[id]) */
}
}

return PLUGIN_HANDLED
}


public actionVoteMapMenu(id, key)
{
new tempMap[32];
switch (key)
{
case 7:
{
new Float:voting = get_cvar_float("amx_last_voting")

if (voting > get_gametime())
{
client_print(id, print_chat, "%L", id, "ALREADY_VOT")
return PLUGIN_HANDLED
}

if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime())
{
client_print(id, print_chat, "%L", id, "VOT_NOW_ALLOW")
return PLUGIN_HANDLED
}

g_voteCount = {0, 0, 0, 0, 0}

new Float:vote_time = get_cvar_float("amx_vote_time") + 2.0
set_cvar_float("amx_last_voting", get_gametime() + vote_time)
new iVoteTime = floatround(vote_time)

set_task(vote_time, "checkVotes", 34567 + id)

new menuBody[512]
new players[32]
new pnum, keys, len

get_players(players, pnum)

if (g_voteSelectedNum[id] > 1)
{
len = format(menuBody, 511, g_coloredMenus ? "\y%L^n\w^n" : "%L^n^n", id, "WHICH_MAP")

for (new c = 0; c < g_voteSelectedNum[id]; ++c)
{
ArrayGetString(g_mapName, g_voteSelected[id][c], tempMap, charsmax(tempMap));
len += format(menuBody[len], 511, "%d. %s^n", c + 1, tempMap)
keys |= (1<<c)
}

keys |= (1<<
len += format(menuBody[len], 511, "^n9. %L^n", id, "NONE")
} else {
ArrayGetString(g_mapName, g_voteSelected[id][0], tempMap, charsmax(tempMap));
len = format(menuBody, 511, g_coloredMenus ? "\y%L^n%s?^n\w^n1. %L^n2. %L^n" : "%L^n%s?^n^n1. %L^n2. %L^n", id, "CHANGE_MAP_TO", tempMap, id, "YES", id, "NO")
keys = MENU_KEY_1|MENU_KEY_2
}

new menuName[64]
format(menuName, 63, "%L", "en", "WHICH_MAP")

for (new b = 0; b < pnum; ++b)
if (players[b] != id)
show_menu(players[b], keys, menuBody, iVoteTime, menuName)

format(menuBody[len], 511, "^n0. %L", id, "CANC_VOTE")
keys |= MENU_KEY_0
show_menu(id, keys, menuBody, iVoteTime, menuName)

new authid[32], name[32]

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)

show_activity_key("ADMIN_V_MAP_1", "ADMIN_V_MAP_2", name);

new tempMapA[32];
new tempMapB[32];
new tempMapC[32];
new tempMapD[32];
if (g_voteSelectedNum[id] > 0)
{
ArrayGetString(g_mapName, g_voteSelected[id][0], tempMapA, charsmax(tempMapA));
}
else
{
copy(tempMapA, charsmax(tempMapA), "");
}
if (g_voteSelectedNum[id] > 1)
{
ArrayGetString(g_mapName, g_voteSelected[id][1], tempMapB, charsmax(tempMapB));
}
else
{
copy(tempMapB, charsmax(tempMapB), "");
}
if (g_voteSelectedNum[id] > 2)
{
ArrayGetString(g_mapName, g_voteSelected[id][2], tempMapC, charsmax(tempMapC));
}
else
{
copy(tempMapC, charsmax(tempMapC), "");
}
if (g_voteSelectedNum[id] > 3)
{
ArrayGetString(g_mapName, g_voteSelected[id][3], tempMapD, charsmax(tempMapD));
}
else
{
copy(tempMapD, charsmax(tempMapD), "");
}

log_amx("Vote: ^"%s<%d><%s><>^" vote maps (map#1 ^"%s^") (map#2 ^"%s^") (map#3 ^"%s^") (map#4 ^"%s^")",
name, get_user_userid(id), authid,
tempMapA, tempMapB, tempMapC, tempMapD)
}
case 8: displayVoteMapsMenu(id, ++g_menuPosition[id])
case 9: displayVoteMapsMenu(id, --g_menuPosition[id])
default:
{
g_voteSelected[id][g_voteSelectedNum[id]++] = g_menuPosition[id] * 7 + key
displayVoteMapsMenu(id, g_menuPosition[id])
}
}

return PLUGIN_HANDLED
}

public menu(id, key)
{
if (key == 0)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[32]

read_argv(1, arg, 31)

new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)

if (!player)
return PLUGIN_HANDLED

user_kill(player)

new authid[32], name2[32], authid2[32], name[32]

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)
get_user_authid(player, authid2, 31)
get_user_name(player, name2, 31)

log_amx("Cmd: ^"%s<%d><%s><>^" slay ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, name2, get_user_userid(player), authid2)

show_activity_key("ADMIN_SLAY_1", "ADMIN_SLAY_2", name, name2);

console_print(id, "[AMXX] %L", id, "CLIENT_SLAYED", name2)

return PLUGIN_HANDLED
} else if (key == 1) {
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new arg[32]

read_argv(1, arg, 31)
new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)

if (!player)
return PLUGIN_HANDLED

new spower[32], authid[32], name2[32], authid2[32], name[32]

read_argv(2, spower, 31)

new damage = str_to_num(spower)

user_slap(player, damage)

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)
get_user_authid(player, authid2, 31)
get_user_name(player, name2, 31)

log_amx("Cmd: ^"%s<%d><%s><>^" slap with %d damage ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, damage, name2, get_user_userid(player), authid2)

show_activity_key("ADMIN_SLAP_1", "ADMIN_SLAP_2", name, name2, damage);

console_print(id, "[AMXX] %L", id, "CLIENT_SLAPED", name2, damage)

return PLUGIN_HANDLED
} else if (key == 2) {
{
new tempMap[32];
switch (key)
{
case 7:
{
new Float:voting = get_cvar_float("amx_last_voting")

if (voting > get_gametime())
{
client_print(id, print_chat, "%L", id, "ALREADY_VOT")
return PLUGIN_HANDLED
}

if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime())
{
client_print(id, print_chat, "%L", id, "VOT_NOW_ALLOW")
return PLUGIN_HANDLED
}

g_voteCount = {0, 0, 0, 0, 0}

new Float:vote_time = get_cvar_float("amx_vote_time") + 2.0
set_cvar_float("amx_last_voting", get_gametime() + vote_time)
new iVoteTime = floatround(vote_time)

set_task(vote_time, "checkVotes", 34567 + id)

new menuBody[512]
new players[32]
new pnum, keys, len

get_players(players, pnum)

if (g_voteSelectedNum[id] > 1)
{
len = format(menuBody, 511, g_coloredMenus ? "\y%L^n\w^n" : "%L^n^n", id, "WHICH_MAP")

for (new c = 0; c < g_voteSelectedNum[id]; ++c)
{
ArrayGetString(g_mapName, g_voteSelected[id][c], tempMap, charsmax(tempMap));
len += format(menuBody[len], 511, "%d. %s^n", c + 1, tempMap)
keys |= (1<<c)
}

keys |= (1<<
len += format(menuBody[len], 511, "^n9. %L^n", id, "NONE")
} else {
ArrayGetString(g_mapName, g_voteSelected[id][0], tempMap, charsmax(tempMap));
len = format(menuBody, 511, g_coloredMenus ? "\y%L^n%s?^n\w^n1. %L^n2. %L^n" : "%L^n%s?^n^n1. %L^n2. %L^n", id, "CHANGE_MAP_TO", tempMap, id, "YES", id, "NO")
keys = MENU_KEY_1|MENU_KEY_2
}

new menuName[64]
format(menuName, 63, "%L", "en", "WHICH_MAP")

for (new b = 0; b < pnum; ++b)
if (players[b] != id)
show_menu(players[b], keys, menuBody, iVoteTime, menuName)

format(menuBody[len], 511, "^n0. %L", id, "CANC_VOTE")
keys |= MENU_KEY_0
show_menu(id, keys, menuBody, iVoteTime, menuName)

new authid[32], name[32]

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)

show_activity_key("ADMIN_V_MAP_1", "ADMIN_V_MAP_2", name);

new tempMapA[32];
new tempMapB[32];
new tempMapC[32];
new tempMapD[32];
if (g_voteSelectedNum[id] > 0)
{
ArrayGetString(g_mapName, g_voteSelected[id][0], tempMapA, charsmax(tempMapA));
}
else
{
copy(tempMapA, charsmax(tempMapA), "");
}
if (g_voteSelectedNum[id] > 1)
{
ArrayGetString(g_mapName, g_voteSelected[id][1], tempMapB, charsmax(tempMapB));
}
else
{
copy(tempMapB, charsmax(tempMapB), "");
}
if (g_voteSelectedNum[id] > 2)
{
ArrayGetString(g_mapName, g_voteSelected[id][2], tempMapC, charsmax(tempMapC));
}
else
{
copy(tempMapC, charsmax(tempMapC), "");
}
if (g_voteSelectedNum[id] > 3)
{
ArrayGetString(g_mapName, g_voteSelected[id][3], tempMapD, charsmax(tempMapD));
}
else
{
copy(tempMapD, charsmax(tempMapD), "");
}

log_amx("Vote: ^"%s<%d><%s><>^" vote maps (map#1 ^"%s^") (map#2 ^"%s^") (map#3 ^"%s^") (map#4 ^"%s^")",
name, get_user_userid(id), authid,
tempMapA, tempMapB, tempMapC, tempMapD)
}
case 8: displayVoteMapsMenu(id, ++g_menuPosition[id])
case 9: displayVoteMapsMenu(id, --g_menuPosition[id])
default:
{
g_voteSelected[id][g_voteSelectedNum[id]++] = g_menuPosition[id] * 7 + key
displayVoteMapsMenu(id, g_menuPosition[id])
}
}

return PLUGIN_HANDLED
} else if (key == 3) {
{
switch (key)
{
case 8: displayMapsMenu(id, ++g_menuPosition[id])
case 9: displayMapsMenu(id, --g_menuPosition[id])
default:
{
new a = g_menuPosition[id] * 8 + key
new _modName[10]

get_modname(_modName, 9)
if (!equal(_modName, "zp"))
{
message_begin(MSG_ALL, SVC_INTERMISSION)
message_end()
}

new authid[32], name[32]

get_user_authid(id, authid, 31)
get_user_name(id, name, 31)

new tempMap[32];
ArrayGetString(g_mapName, a, tempMap, charsmax(tempMap));

show_activity_key("ADMIN_CHANGEL_1", "ADMIN_CHANGEL_2", name, tempMap);

log_amx("Cmd: ^"%s<%d><%s><>^" changelevel ^"%s^"", name, get_user_userid(id), authid, tempMap)
set_task(2.0, "delayedChange", 0, tempMap, strlen(tempMap) + 1)
/* displayMapsMenu(id, g_menuPosition[id]) */
}
}

return PLUGIN_HANDLED
}
}
akhjalpk is offline
Send a message via MSN to akhjalpk Send a message via Skype™ to akhjalpk
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 10-07-2012 , 15:02   Re: Golden/Silver Player
Reply With Quote #8

Quote:
Originally Posted by akhjalpk View Post
omg i didnt code my friend passed it to me, and asked me not to share it with anyone
but me... as i dont keep my word ..........
i posted it here
i have a better one
i use the one by exolent
i like it....copyright infringement. b&

Quote:
Originally Posted by akhjalpk View Post
btw plz help me with this code,its too hard:

since i m not a professional coder :O

Spoiler
ever heard of [php] tags? no? try them.
This is not here to help you fix code, this is here to POST your code. Don't post code if you can't support it. Go to scripting help or request for this.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode