19.03.2014, 07:22
So, This is what I did.
Where do I put it?
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.");
}