I've been thinking of some ideas to make the server fun and i got one i don't know if its difficult or not cuz i have no idea how to start making it..
Request: is it possible to make a player who have the most AmmoPacks in map his name will shown in top of screen as 1st place the whole map only if 1st leave the server the 2nd will be 1st and 3rd will be 2nd.
Example:
Player1: [1st] - [show his aps]
Player2: [2nd] - [Show his aps]
Player3: [3rd] - [Show his aps]
its kinda wierd but it is actually good so the players will fight for 1st
if its difficult to make then forget about cuz i know no one gonna do that hehe. But! if its possible or not difficult to make can you give me some advice or tips for that, I will be so appreciative if u teach me.
I've been thinking of some ideas to make the server fun and i got one i don't know if its difficult or not cuz i have no idea how to start making it..
Request: is it possible to make a player who have the most AmmoPacks in map his name will shown in top of screen as 1st place the whole map only if 1st leave the server the 2nd will be 1st and 3rd will be 2nd.
Example:
Player1: [1st] - [show his aps]
Player2: [2nd] - [Show his aps]
Player3: [3rd] - [Show his aps]
its kinda wierd but it is actually good so the players will fight for 1st
if its difficult to make then forget about cuz i know no one gonna do that hehe. But! if its possible or not difficult to make can you give me some advice or tips for that, I will be so appreciative if u teach me.
Thanks!
That's easy. On Road End just loop through all connected players and check for highest packs. If found get his name and show a hud message. Simple.
Working on a very big AMXX project. Interested and Experienced peoples can contact me. My Facebook = Abhinash Behuria Phone number = 07686091154
I've been thinking of some ideas to make the server fun and i got one i don't know if its difficult or not cuz i have no idea how to start making it..
Request: is it possible to make a player who have the most AmmoPacks in map his name will shown in top of screen as 1st place the whole map only if 1st leave the server the 2nd will be 1st and 3rd will be 2nd.
Example:
Player1: [1st] - [show his aps]
Player2: [2nd] - [Show his aps]
Player3: [3rd] - [Show his aps]
its kinda wierd but it is actually good so the players will fight for 1st
if its difficult to make then forget about cuz i know no one gonna do that hehe. But! if its possible or not difficult to make can you give me some advice or tips for that, I will be so appreciative if u teach me.
Thanks!
That's easy. On Road End just loop through all connected players and check for highest packs. If found get his name and show a hud message. Simple.
It looks pretty hard for me to start doing that, but I will do my best and sharing it here
I will be honest with you, im not gonna say its my plugin but i edited by watching other codes just to learn and this is what i can do so far.. its actually work!! but im stuck at "2nd and 3rd" i have no idea how to do that.
Can you give me a hand, i'll be grateful for that. Also! if you find this plugin little bit wrong or messed up, please let me know cuz i wanna make clean server
public client_disconnect(id) { remove_task(id+TASK_AMMOPACK) }
GetPlayers() { static Players, id Players= 0 for (id = 1; id <= g_maxplayers; id++) { if(is_user_connected(id)) Players++ } return Players }
GetRandomPlayers(n) { static Players, id Players= 0 for (id = 1; id <= g_maxplayers; id++) { if(is_user_connected(id)) Players++
if (Players == n) return id; } return -1; }
public leader_ammopacks(taskID) { taskID = TASK_AMMOPACK
static iPlayersnum; iPlayersnum = GetPlayers()
if (iPlayersnum < 1) return;
static best; best = GetRandomPlayers(random_num(1, iPlayersnum))
for (new i = 1; i < g_maxplayers; i++) { if (!is_user_connected(i)) continue;
if (zp_get_user_ammo_packs(i) > zp_get_user_ammo_packs(best)) best = i else if (zp_get_user_ammo_packs(i) == zp_get_user_ammo_packs(best)) best = i else if (zp_get_user_ammo_packs(i) == zp_get_user_ammo_packs(best)) best = i }
If first player is "best". Then second is "best + 1" Third is "best + 2". Simple.
yes i tried that and it work. but the problem is when all players left and only one player remains on the server he will be shown as 1st and 2nd and 3rd which is make non-sense