Raised This Month: $51 Target: $400
 12% 

Gold member spec info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZdubZ0r
Senior Member
Join Date: Feb 2011
Location: Romania
Old 04-14-2016 , 05:56   Gold member spec info
Reply With Quote #1

Spoiler


How can i add (Gold Member *) to this spec info using zm_vip(1.7.2)flags?!! Only if that player has a VIP i want to show it , if it doesnt then it wont show him as a Gold Member !!
ZdubZ0r is offline
Send a message via Yahoo to ZdubZ0r Send a message via Skype™ to ZdubZ0r
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-15-2016 , 01:25   Re: Gold member spec info
Reply With Quote #2

PHP Code:
if (id != ID_SHOWHUD)
{

new 
health[32], armor[32], ammopacks[32], pointsstring[32]
new 
Name32 ], Country128 ], CityString128 ];
get_user_nameidName31 );
GetClientGeoDataidCountryNameCountry127 );
GetClientGeoDataidCityCityString127 );

// Format health, armor, ammo packs and points
AddCommas(pev(idpev_health), health32);
AddCommas(pev(idpev_armorvalue), armor32);
AddCommas(g_ammopacks[id], ammopacks32);
AddCommas(zp_get_user_points(id), pointsstring32);
// Show name, class, health, armor and ammo packs 
set_hudmessage(27119224HUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"Spectating %s %s^n%s, Health:%s, Armor:%s, Packs:%d, Points:%s, ^nFrom:%s, %s",(get_user_flags(id) & ADMIN_LEVEL_H) ? "[Gold Member]" "" ,g_playername[id],class, healtharmorammopackspointsstringCountryCityString);

Here's the code.
To change level you look here : https://forums.alliedmods.net/showthread.php?t=71269
If it has that flag then it will print gold member if not the string will be empty, I think you understand.

Last edited by siriusmd99; 04-15-2016 at 06:42.
siriusmd99 is offline
ZdubZ0r
Senior Member
Join Date: Feb 2011
Location: Romania
Old 04-15-2016 , 02:52   Re: Gold member spec info
Reply With Quote #3

RO : Mersi omu foarte mult , raman dator
EN : Thank you very much , i owe you
ZdubZ0r is offline
Send a message via Yahoo to ZdubZ0r Send a message via Skype™ to ZdubZ0r
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 04-24-2016 , 02:40   Re: Gold member spec info
Reply With Quote #4

Add This

Code:
#include <zm_vip>

Now modify this line like that.

Code:
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "Spectating: %s %s^n%s, HP: %s Packs: %s Points: %s^nFrom: %s, %s", (zv_get_user_flags(id) & ZV_UNLIMITED) ? "(Gold Member ®)" : "", g_playername [ id ], class, HealthString, AmmoString, PointsString, Country, City2 );
__________________
LondoN 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 10:14.


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