Quote:
Originally Posted by Kia
You can't simply pass id in the function. Use get_players and go through all players and show them each the HUD.
|
Is this correct?
Code:
public p_infoz()
{
new Players[32]
new playerCount, i, player
get_players(Players, playerCount, "a")
for (i=0; i<playerCount; i++)
player = Players[i]
set_hudmessage(30, 100, 255, -1.0, 0.87, 0, _, 2.0, _, _, -1)
ShowSyncHudMsg(player, g_hudmsg8, "^n^n[Points] %i [XP] %i",Cash[player],XP[player])
}
I tested this and it reads the Values now!