public OnPlayerKeysStateChange(playerid,newkeys,oldkeys){ if((newkeys & KEY_SECONDARY_ATTACK)) { OnPlayerCommandText(playerid,"/portao"); //sу trocar o /portao pelo seu comando de entrar e sair }}