Raised This Month: $ Target: $400
 0% 

Just a small issue...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Theshooter7
Junior Member
Join Date: Apr 2007
Old 04-11-2007 , 21:01   Re: Just a small issue...
Reply With Quote #4

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(255001.00.406.012.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.

Last edited by Theshooter7; 04-11-2007 at 21:04.
Theshooter7 is offline
 



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 06:44.


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