14.04.2011, 00:12
Quote:
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_CROUCH) { SendClientMessage(playerid,0xFFFFFFFF, "WORKING"); new randomid = random(500);//500=number of players TogglePlayerControllable(randomid, false); SendClientMessage(randomid,0xFFFFFFFF, "You've been freezed by someone."); } return 1; } |
Not quite sure how you could do this. I'm sure a more experienced Pawn Programmer will know how to do this properly.