Raised This Month: $32 Target: $400
 8% 

Create player array with specefic number (g_iPlayerNumber) and get the lowest two


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 05-31-2019 , 21:26   Create player array with specefic number (g_iPlayerNumber) and get the lowest two
Reply With Quote #1

Hey, as the title say, need script, where i can get all players in a array with there specific number from g_iPlayerNumber.

example: !numbers -> create array with all players and get players number g_iPlayerNumber[client]

array GetPlayersNumber= [
'PLAYER 1' => 'HIS NUMBER', ( number 10 )
'PLAYER 2' => 'HIS NUMBER', ( number 8 )
'PLAYER 3' => 'HIS NUMBER', ( number 5 )
'PLAYER 4' => 'HIS NUMBER', ( number 3 )
'PLAYER 5' => 'HIS NUMBER' ( number 1 )
];

and then Print the 2 lowest players in chat,

PrintToChatAll("PLAYER 4 and PLAYER 5 has the lowest numbers");

thanks.

Last edited by iskenderkebab33; 05-31-2019 at 21:34.
iskenderkebab33 is offline
Reply



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 03:53.


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