Posts: 142
Threads: 58
Joined: Feb 2014
Reputation:
0
I have a server roleplay , i want the newbie level 1 they cant get kill for 2 hour when they start after 2 hours they will be killed normal like another player , how can i do that , give me pawn please
thanks to visit my topic
Posts: 508
Threads: 146
Joined: Jan 2014
Reputation:
0
Show me your enum that holds the PLayerInfo or pInfo
Posts: 302
Threads: 64
Joined: Feb 2014
Reputation:
0
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;
}
Posts: 142
Threads: 58
Joined: Feb 2014
Reputation:
0
thanks all guys for helping