How to make a probably command?
#1

Hi,
I already saw commands like /try or /engine that have a probability of work (like 1 in 4 to fail)
I'm wondering if someone can explain me how to script a command with the probability 1 to succeed in 5.
Maybe this will help more poeple

Thanks
Reply
#2

pawn Код:
if(random(5) == 3)
Reply
#3

Or cases..
Reply
#4

https://sampwiki.blast.hk/

Why does the wiki exist if nobody uses it..?
Reply
#5

because it have many titles and subtitles, i need an explanation or website telling me that.

Can you give me the wiki "tread" to see that? xD
Reply
#6

Tread?

https://sampwiki.blast.hk/wiki/Random
Reply
#7

thats why i made tread with ""
Anyway, thank you homie, i'll make it and maaybe tell in this topic how i made it :P


EDIT: alright, i saw that and its taalkign mt about spawn.
I want to make a command with a probability to knockdown
Any tip?
Reply
#8

https://sampwiki.blast.hk/wiki/Random
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)