22.03.2009, 12:38
This is easy way stop DDB
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new currentState = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && currentState == PLAYER_STATE_DRIVER) { if(newkeys & KEY_FIRE) { if(newkeys & KEY_LOOK_RIGHT) { GameTextForPlayer(playerid, "Don't DDB!", 5000, 5); TogglePlayerControllable(playerid,0); }else if(newkeys & KEY_LOOK_LEFT) { GameTextForPlayer(playerid, "Don't DDB!", 5000, 5); TogglePlayerControllable(playerid,0); } } } if(oldkeys & KEY_FIRE) { if(oldkeys & KEY_LOOK_RIGHT) { TogglePlayerControllable(playerid,1); }else if(oldkeys & KEY_LOOK_LEFT) { TogglePlayerControllable(playerid,1); } } }