How to make level 1 can not get kill for 2 hours playing
#5

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)