[QUESTION] Cuff Breaking
#8

pawn Код:
public HandCuffed()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(cuffed[i] == 1 && IsPlayerConnected(i))
        {
            GameTextForPlayer(i,"Your Handcuffed",4000,3);
            cuffed[i] = 1;
        }
        SetTimer("BreakCuffs",5000,false,"i",playerid);
    }
}
forward BreakCuffs(playerid);
public BreakCuffs(playerid)
{
    new cuffbreak = random(5);
    switch (cuffbreak)
    {
        case 0: cuffed[playerid] == 0, SendClientMessage(playerid,COLOR_GREEN,"You have successfully broke the cuffs, run before the cop see's it."), TogglePlayerControllable(playerid,true);
        case 1: return SendClientMessage(playerid,COLOR_GREEN,"You failed to break cuffs.");
        case 2: return SendClientMessage(playerid,COLOR_GREEN,"You failed to break cuffs.");
        case 3: return SendClientMessage(playerid,COLOR_GREEN,"You failed to break cuffs.");
        case 4: return SendClientMessage(playerid,COLOR_GREEN,"You failed to break cuffs.");
    }
    return 1;
}
try now.
Reply


Messages In This Thread
[QUESTION] Cuff Breaking - by Quicky1995 - 14.05.2010, 08:29
Re: [QUESTION] Cuff Breaking - by 0ne - 14.05.2010, 08:32
Re: [QUESTION] Cuff Breaking - by Quicky1995 - 14.05.2010, 08:37
Re: [QUESTION] Cuff Breaking - by 0ne - 14.05.2010, 08:40
Re: [QUESTION] Cuff Breaking - by Quicky1995 - 14.05.2010, 08:50
Re: [QUESTION] Cuff Breaking - by [MWR]Blood - 14.05.2010, 08:52
Re: [QUESTION] Cuff Breaking - by Quicky1995 - 14.05.2010, 08:53
Re: [QUESTION] Cuff Breaking - by 0ne - 14.05.2010, 08:54
Re: [QUESTION] Cuff Breaking - by Quicky1995 - 14.05.2010, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)