22.08.2013, 15:56
You can't use newkeys in a command. They are to be used in the OnPlayerKeyStateChange callback ONLY. You can just RETURN the command under that callback.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE)
{
// check other conditions, if he is in a car, etc..
return cmd_tow(playerid);
}
return 1;
}

