I apologize for double posting, but another slight issue has crept up. The following code doesn't seem to display the proper numbers, either because of an issue with how the array indexes are being read, or because the hudmessage is not set up properly.
PHP Code:
public playerhud(id) {
set_hudmessage(255, 0, 0, 1.0, 0.4, 0, 6.0, 12.0)
show_hudmessage(id, "Level: %d ^nXP: %d / %d",LVL[id],XP[id],XP2LVL[id])
}
public client_connect(id) {
read_playerdata(id);
XPMultiply[id] = 1.0;
KStreak[id] = 0
if(LVL[id] < 2)
{
LVL[id] = 1
XP2LVL[id] = 50
}
}
public client_disconnect(id) {
write_playerdata(id);
XP[id] = 0;
XP2LVL[id] = 0;
LVL[id] = 0;
XPMultiply[id] = 1.0;
KStreak[id] = 0;
}
Another thing I'd like to know; is it possible to determine either a player's team or their player model? I intend to have one team of players have double health, while the other have no footstep noises.