- Код:
#include <a_samp>
// Antislide by O.K.Style™
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPVarInt(playerid, "Slide") == 1 && newkeys & KEY_SPRINT && newkeys & KEY_HANDBRAKE)
ApplyAnimation(playerid, "PED", "getup_front", 4.0, 0, 0, 1, 0, 0);
return 1;
}
public OnPlayerUpdate(playerid)
{
new Keys, ud, lr;
GetPlayerKeys(playerid, Keys, ud, lr);
if(ud < 0) SetPVarInt(playerid, "Slide", 1);
else SetPVarInt(playerid, "Slide", 0);
return 1;
}
Автор: OKStyle