14.05.2010, 08:40
Well you said you want a random breakout, so do a timer when he tries to make a /breakcuffs command of something like that
and on the randoms where id id
Switch(cuffbreak)
{
case 0: code of broke cuffs
if the random is == 0 do like cuffed[playerid] == 0, SendClientMessage(playerid,COLOR,"You have successfully broke the cuffs, run before the cop see's it.");
so:
and on the randoms where id id
Switch(cuffbreak)
{
case 0: code of broke cuffs
if the random is == 0 do like cuffed[playerid] == 0, SendClientMessage(playerid,COLOR,"You have successfully broke the cuffs, run before the cop see's it.");
so:
pawn Код:
new cuffbreak = random(5);
switch (cuffbreak)
{
case 0: cuffed[playerid] == 0, SendClientMessage(playerid,COLOR,"You have successfully broke the cuffs, run before the cop see's it.");
case 1: return SendClientMessage or something you want..
case 2: return SendClientMessage or something you want..
case 3: return SendClientMessage or something you want..
case 4: return SendClientMessage or something you want..
}
}