Chance
#1

Hey, How do I make it only a "chance" for something to work like my command

pawn Код:
CMD:breakcuffs(playerid, params[])
{
    new string[64];

    if(pCuffed[tid] == 1)
    {
        pCuffed[tid] = 0; // set var

        SendClientMessage(playerid, -1, "You have broken your cuffs.");

        RemovePlayerAttachedObject(playerid, 7); // remove their attached object
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
    }
    else SendClientMessage(playerid, -1, "You aren't cuffed!");
    return 1;
}
Could someone make it a 50/50 Chance for it to work?
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: 1 Guest(s)