AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to use random id? (https://forums.alliedmods.net/showthread.php?t=172730)

kiki33hun 11-25-2011 08:10

How to use random id?
 
PHP Code:

public teszt()
{
    new 
rand random_num(1,32);
    
set_user_footsteps(rand1);


Working??

drekes 11-25-2011 08:11

Re: How to use random id?
 
PHP Code:

new iPlayers[32], iNumiPlayer;
get_players(iPlayersiNum);

iPlayer iPlayers[random(iNum)];
// iPlayer is a random player. 


kiki33hun 11-25-2011 08:20

Re: How to use random id?
 
Thanx drekes :D


All times are GMT -4. The time now is 08:25.

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