[FilterScript] very very short random player win money
#1

was bored & create that in 5 min
this chose a random connected player and give random amount of money
Reply
#2

Nice
Reply
#3

thnks
Reply
#4

Has this been tested? It doesn't look like it will work.
Reply
#5

actualy i use this system to chose and change a randome player team
i used the same code (i've added a timer and few things ) but it works perfectl
Reply
#6

that doesnt work and you can do this easier
Reply
#7

i just test it in ! i insert it in riverShal G.m and it works
Reply
#8

Good work, it is a very util and simple .-.

Hey, use:

pawn Code:
GetRandomPlayer(iPlayer = INVALID_PLAYER_ID)
{
    offline:
    iPlayer = random(MAX_PLAYERS);
   
    if(!IsPlayerConnected(iPlayer)) goto offline;
    return iPlayer;
}
Hugs
Reply
#9

Quote:
Originally Posted by ScripterTroll
View Post
Good work, it is a very util and simple .-.

Hey, use:

pawn Code:
GetRandomPlayer(iPlayer = INVALID_PLAYER_ID)
{
    offline:
    iPlayer = random(MAX_PLAYERS);
   
    if(!IsPlayerConnected(iPlayer)) goto offline;
    return iPlayer;
}
Hugs
true it's simpler like that
Reply
#10

update
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)