Raised This Month: $ Target: $400
 0% 

show highest exp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amxinclude
Member
Join Date: Oct 2011
Old 10-25-2011 , 14:01   show highest exp
Reply With Quote #1

i want a plugin shows highest exp at the corner
xp = PlayerXP[id]
amxinclude is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 10-25-2011 , 17:50   Re: show highest exp
Reply With Quote #2

U need something like this



public client_experience()
{
new Players[32], iNum
get_players(Players, iNum)

for(new i = 0; i < iNum; ++i)
{
new id = Players[i]
if(is_user_alive(id))
{
new InfoMsg[255]
format(InfoMsg, 254, "XP: %d/%d", g_PlayerXP[id], your variable here[id])

message_begin(MSG_ONE, get_user_msgid("StatusText"), {0, 0, 0}, id)
write_byte(0)
write_string(InfoMsg)
message_end()
}


}
return PLUGIN_CONTINUE
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
amxinclude
Member
Join Date: Oct 2011
Old 10-26-2011 , 14:20   Re: show highest exp
Reply With Quote #3

it wont work please help :S
amxinclude is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-27-2011 , 03:10   Re: show highest exp
Reply With Quote #4

If you want to show the highest EXP on server, use something like this:


Code:
new Exp, i for(i = 0; i < g_maxplayers; i++)    if(PlayerXP[i] > Exp)        Exp = PlayerXP[i]

Then use hudmsg or call StatusText message.
Backstabnoob is offline
amxinclude
Member
Join Date: Oct 2011
Old 11-19-2011 , 06:42   Re: show highest exp
Reply With Quote #5

Thanks Backstabnoob
amxinclude 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 14:25.


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