ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1314

all player info

by gaspermodz - 10-23-2019 - 06:29 PM
#1
void allplayerinfo() {
GRAPHICS::DRAW_RECT(0.181400, 0.310100, 0.167900, 0.409100, 0, 0, 0, 255);
DRAW_SPRITE("phone_wallpaper_ifruit_b", "phone_wallpaper_ifruit_b", 0.181400, 0.310100, 0.165200, 0.403700, 0, 238, 113, 37, 255);
GRAPHICS::DRAW_RECT(0.250700, 0.316400, 0.001400, 0.392900, 0, 0, 0, 255);
GRAPHICS::DRAW_RECT(0.181400, 0.122900, 0.165200, 0.031100, 0, 0, 0, 255);
PrintText("loby info", 0, 0.126500, 0.103100, 0.320000, 0.505000, 225, 225, 225, 255, 0, true);
DRAW_SPRITE("shared", "info_icon_32", 0.112100, 0.122000, 0.027500, 0.043700, 0, 255, 255, 255, 255);
float Start1 = 0.056;//Start Position BG
float Start2 = 0.046;//Start Position Text
float Start3 = 0.0634;//Start Position Icon
char Player[45];
char *Icon;
int i = 0;
for (i = 0; i < 18; i++) {
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(i)) { // Connected
Ped ALL = PLAYER::GET_PLAYER_PED(i);
if (NETWORK::NETWORK_IS_PLAYER_TALKING(i)) {
DRAW_SPRITE("mpleaderboard", "leaderboard_audio_3", RektX, (Start3 += 0.02f), 0.014f, 0.02f, 0.0f, 255, 255, 255, 200);//Talking Icon
}
else if (PED::IS_PED_IN_ANY_VEHICLE(ALL, 0)) {
if (PED::IS_PED_ON_ANY_BIKE(ALL)) {
Icon = "leaderboard_transport_bike_icon";//Motorcycle
}
else if (PED::IS_PED_IN_ANY_BOAT(ALL)) {
Icon = "leaderboard_transport_boat_icon";//Boat
}
else if (PED::IS_PED_IN_ANY_HELI(ALL)) {
Icon = "leaderboard_transport_heli_icon";//Heli
}
else if (PED::IS_PED_IN_ANY_PLANE(ALL)) {
Icon = "leaderboard_transport_plane_icon";//Plane
}
else {
Icon = "leaderboard_transport_car_icon";//Car
}
DRAW_SPRITE("mpleaderboard", Icon, 0.257000, 0.069800 + (Start3 += 0.02f), 0.014f, 0.02f, 0.0f, 255, 255, 255, 200);//Veh Icon
}
else {
DRAW_SPRITE("mpleaderboard", "leaderboard_male_icon", 0.257000, 0.069800 + (Start3 += 0.02f), 0.014f, 0.02f, 0.0f, 255, 255, 255, 200);//On Foot Icon
}
if (GodModeCheck(i)) { //Godmode Check
sprintf(Player, "%i. ~y~%s ~b~[G]", i + 1, PLAYER::GET_PLAYER_NAME(i));
}
else {
sprintf(Player, "%i. ~y~%s", i + 1, PLAYER::GET_PLAYER_NAME(i));
}
PrintText(Player, 0, 0.10220, 0.074300 + (Start2 += 0.02f), 0.34, 0.34, 255, 255, 255, 255, 0, true);//Player
}
else {
DRAW_SPRITE("mpleaderboard", "leaderboard_male_icon", 0.257000, 0.069800 + (Start3 += 0.02f), 0.014f, 0.02f, 0.0f, 255, 255, 255, 200);//On Foot Icon
sprintf(Player, "%i. empty slot", i + 1, PLAYER::GET_PLAYER_NAME(i));
PrintText(Player, 0, 0.10220, 0.074300 + (Start2 += 0.02f), 0.34, 0.34, 255, 255, 255, 255, 0, true);//Player
}
}
}
Reply

Users browsing: 1 Guest(s)