RSSy MYGO.pl Opublikowano Grudzień 31, 2020 o 04:22 RSSy Udostępnij Opublikowano Grudzień 31, 2020 o 04:22 Hi i'm looking for a person who can add a lines in my mod, so that we can see the name of the team as soon as you look at the person example if it's CT team you see HUMAN and for the terrorists team it's ZOMBIES I'm going to post a screen to show you an example. (CT) (T) PHP Code: public ev_ShowStatus(id) //called when id looks at someone{ new name[32], pid = read_data(2); new stats[8],bodyhits[8] get_user_name(pid, name, 31); new color1 = 0, color2 = 0; if (get_user_team(pid) == 1) color1 = 255; else color2 = 255; new Float:height=0.35 //height=0.60 if (g_friend[id] == 1) // friend { new clip, ammo, wpnid = get_user_weapon(pid, clip, ammo); new wpnname[32]; if (wpnid) xmod_get_wpnname(wpnid, wpnname, 31); new rank = get_user_stats(pid, stats, bodyhits) set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01); ShowSyncHudMsg(id, gHudSyncInfo, "%L", LANG_SERVER, "PLAYER_INFO1", name, rank, get_user_health(pid), wpnname); } if (g_friend[id] != 1) //enemy { new rank = get_user_stats(pid, stats, bodyhits) set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01); ShowSyncHudMsg(id, gHudSyncInfo,"%L", LANG_SERVER, "PLAYER_INFO2", name, rank); }} Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi