16.02.2013, 13:26
Hi, i have a question.
When the player type the command then server change var to 1(OK), but how to do function which will be random players with this var and after this give them another var ?
Something like:
Someone type command
Server change his var to 1 (ex. player[playerid] = 1)
Now random players with this var on 1 (random)
Server chose 1(one) player with this var and change his to another (ex. player[playerid] = 1 --> player1[playerid] = 1)
I think that's all.
Greetings.
When the player type the command then server change var to 1(OK), but how to do function which will be random players with this var and after this give them another var ?
Something like:
Someone type command
Server change his var to 1 (ex. player[playerid] = 1)
Now random players with this var on 1 (random)
Server chose 1(one) player with this var and change his to another (ex. player[playerid] = 1 --> player1[playerid] = 1)
I think that's all.
Greetings.