Thread
:
Trigger function with % chance
View Single Post
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
02-22-2017 , 14:00 Re: Trigger function with % chance
#
10
PHP Code:
public
RoundStart
(
id
) {
new
random
=
random_num
(
1
,
100
);
if(
random
<=
5
)
CmdKnifeRound
(
id
);
}
I added (id) and it works.
Should I replace this to Emp`'s code and what would be the difference?
__________________
Last edited by Airkish; 02-22-2017 at
14:02
.
Airkish
View Public Profile
Send a private message to Airkish
Find More Posts by Airkish