25.07.2012, 05:23
This should be correct:
pawn Код:
public OnPlayerStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
{
//Whatever you would do for the /enter, check if they are in range, etcetra
}
return 1;
}