30.11.2013, 13:28
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new params[1];
if ((newkeys==KEY_UP))
{
cmd_usaralvo1(playerid, params);
cmd_usaralvo2(playerid, params);
cmd_usaralvo3(playerid, params);
cmd_usaralvo4(playerid, params);
}
if ((newkeys==KEY_SPRINT))
{
cmd_usaralvo1(playerid, params);
cmd_usaralvo2(playerid, params);
cmd_usaralvo3(playerid, params);
cmd_usaralvo4(playerid, params);
}
return 1;
}