SA-MP Forums Archive
How to make a probably command? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a probably command? (/showthread.php?tid=71353)



How to make a probably command? - Shellegg - 31.03.2009

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


Re: How to make a probably command? - Nero_3D - 31.03.2009

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



Re: How to make a probably command? - MenaceX^ - 31.03.2009

Or cases..


Re: How to make a probably command? - Mikep - 31.03.2009

https://sampwiki.blast.hk/

Why does the wiki exist if nobody uses it..?


Re: How to make a probably command? - Shellegg - 31.03.2009

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


Re: How to make a probably command? - Mikep - 31.03.2009

Tread?

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


Re: How to make a probably command? - Shellegg - 31.03.2009

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?


Re: How to make a probably command? - Mikep - 01.04.2009

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