02.09.2013, 03:26
You shouldn't use TestCount in NaS variant, 'coz it's already check 3 buttons(KEY_UP, KEY_SPRINT, KEY_JUMP And not forget to set Test to 1. If you want to check if player pressed ANY 3 buttons, try this, it works.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new count = 0;
for(new i = 0; i < 20; i++)
count += (newkeys >> i) & 1;
if(count == 3)
{
SendClientMessageToAll(-1, "3 buttons!");
//TODO...
}
}
return 1;
}