19.01.2016, 08:38
PHP код:
new PlayerLuck[playerid]; // <------- Variable that player's luck stored in.
new rand = random(100);
if(0 <= rand && rand <= PlayerLuck[playerid]) return ... //> Success
else if(rand > PlayerLuck[playerid]) return ... //> Fail