Raised This Month: $51 Target: $400
 12% 

new round keeps hp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 08-27-2022 , 16:26   new round keeps hp
Reply With Quote #1

hello, Im trying to make a human classes and i was wondering how could i let a player having the same "class" more rounds? i mean, if a player chooses class1 (200hp blabla) but he is able to chose only one class per round, how can i let him continuing the same class even the next round without choosing it again?
PHP Code:
public evHookRoundStart( )
{
    new 
iPlayers32 ];
    new 
iPlayersNum;
    
    
get_playersiPlayersiPlayersNum"ch" );        
    for( new 
iPlayersNum i++ )
    {
        
UserChoosed[iPlayers[i]]  =  false;
    }
    

i have to false the userchoosed to make it work once a round... but i want to let the player keeping the class even in the next round and only next round to be able to change his class! (only if he wants, he can keep the same class every round without having to choose every round)
edit: the main thing i want is that if i choose class1 with 200hp the next round i want to respawn with 200hp again (as my class) not default with 100
__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 08-27-2022 at 16:35.
Nutu_ is online now
 



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 17:48.


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