13.05.2014, 07:18
Sample below:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[issuerid][pLevel] == 1) return SendClientMessage(issuerid, COLOR_RED, " Your message here ");
SetPlayerSpecialAction(issuerid, SPECIAL_ACTION_CUFFED);
SetTimerEx("Uncuffed", 3000, false, "i", issuerid); // You can change time as like you
}
return 1;
}
forward Uncuffed(playerid);
public Uncuffed(playerid)
{
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NON E);
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[issuerid][pLevel] == 1) return SendClientMessage(issuerid, COLOR_RED, " Your message here ");
SetPlayerSpecialAction(issuerid, SPECIAL_ACTION_CUFFED);
SetTimerEx("Uncuffed", 3000, false, "i", issuerid); // You can change time as like you
}
return 1;
}
forward Uncuffed(playerid);
public Uncuffed(playerid)
{
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NON E);
return 1;
}