Chance
#3

So, This is what I did.

pawn Код:
new randomChance = random(2); // 50/50% chance
if(randomChance==0)
{
    SendClientMessage(playerid, -1, "You have broken your cuffs.");
    RemovePlayerAttachedObject(playerid, 7); // remove their attached object
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
else if(randomChance==1)
{
   SendClientMessage(playerid, -1, "You have failed to break your cuffs.");
}
Where do I put it?
Reply


Messages In This Thread
Chance - by Mriss - 19.03.2014, 07:11
Re: Chance - by AssMunchingFool - 19.03.2014, 07:16
Re: Chance - by Mriss - 19.03.2014, 07:22
Re: Chance - by Mriss - 19.03.2014, 07:24
Re: Chance - by AssMunchingFool - 19.03.2014, 07:43

Forum Jump:


Users browsing this thread: 2 Guest(s)